JavaScript
  Home arrow JavaScript arrow Page 2 - Introduction to JavaScript
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
JAVASCRIPT

Introduction to JavaScript
By: Joe eitel
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2009-07-08


    Table of Contents:
  • Introduction to JavaScript
  • Relation to Java
  • Real-time Nature
  • Application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Introduction to JavaScript - Relation to Java
    ( Page 2 of 4 )

    One of the first questions many people have is: how is JavaScript related to Java? In fact, some people even confuse the two, since Java does have some limited application online. In reality, JavaScript is kind of like an estranged nephew of Java. While some of the principles, syntax, and functions of JavaScript trace their origins to Java, the two are quite fundamentally different.

    Most notably, Java is a full-blown programming language where JavaScript is just a simple scripting language whose only application is online. Java contains an incredible amount of power where JavaScript only has what power it needs to do some cool things on a web page. While it is arguable that simple functions are all that JavaScript requires as an extension of Java to web pages, it is very difficult to compare the two since there is such a wide disparity between their respective abilities.

    Java is well known for being an OOP (Object-Oriented Programming) language. JavaScript, on the other hand, mainly utilizes traditional syntax and structures. This is one of the largest differences between the two languages. Because one of the primary identifying features of Java is that it is entirely based on OOP principles, JavaScript is definitely not closely related.

    JavaScript, while not being an OOP language, does share some of the OOP principles of Java. For instance, it does deal with properties of certain objects (such as the screen, tags in the HTML code, etc.). These properties are accessed and modified in a similar fashion to how they are in Java.

    Oddly, JavaScript is actually much closer to ActionScript than it is to Java. If you develop a small script in either ActionScript or JavaScript, it can often be transferred to the other with a minimum amount of correction and change. This similarity can be very useful, as it is not uncommon for a developer to learn both languages to be able to implement the best solution possible.

    JavaScript is also much closer to ActionScript in its native environment than it is to Java. While Java can be implemented on the Internet, it requires a runtime environment to work, just as it does when run locally. While ActionScript does require some software to be installed for the browser to display Flash files (Flash player), this small program is not a runtime environment. JavaScript, of course, does not require any additional installations or software to operate.



     
     
    >>> More JavaScript Articles          >>> More By Joe eitel
     

       

    JAVASCRIPT ARTICLES

    - Introduction to JavaScript
    - Adding Elements to a Tree with TreeView jQue...
    - Using the Persist Argument in a TreeView jQu...
    - Using Unique and Toggle in a TreeView jQuery...
    - Using Event Delegation for Mouseover Events ...
    - Using the Animate Option in a Treeview jQuer...
    - Using HTML Lists with Event Delegation in Ja...
    - Opened and Closed Branches on a TreeView jQu...
    - Mouseover Events and Event Delegation in Jav...
    - Creating a TreeView JQuery Hierarchical Navi...
    - Event Delegation in JavaScript
    - A Look at the New YUI Carousel Control
    - Working with Draggable Elements and Transpar...
    - Displaying Pinned Handles with Resizable Con...
    - Building Resizable Containers with the Ext J...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek