JavaScript:The World's Most Misunderstood Programming Language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Deevyesh Tyagi
    Junior Member
    • Feb 2006
    • 10

    JavaScript:The World's Most Misunderstood Programming Language

    ----------Fact part-1----
    The Name---
    The Java- prefix suggests that JavaScript is somehow related to Java, that it is a subset or less capable version of Java. It seems that the name was intentionally selected to create confusion, and from confusion comes misunderstanding. JavaScript is not interpreted Java. Java is interpreted Java. JavaScript is a different language.

    JavaScript has a syntactic similarity to Java, much as Java has to C. But it is no more a subset of Java than Java is a subset of C. It is better than Java in the applications that Java (fka Oak) was originally intended for.

    JavaScript was not developed at Sun Microsystems, the home of Java. JavaScript was developed at Netscape. It was originally called LiveScript, but that name wasn't confusing enough.

    The -Script suffix suggests that it is not a real programming language, that a scripting language is less than a programming language. But it is really a matter of specialization. Compared to C, JavaScript trades performance for expressive power and dynamism.
    ________
    M06
    Last edited by Deevyesh Tyagi; 04-12-2011, 10:37 PM.
  • Divyesh
    Junior Member
    • Feb 2006
    • 9

    #2
    E4X in Javascript

    ECMAScript for XML (E4X) is a powerful technology for creating and processing XML content within JavaScript. We're going to continue to improve our E4X support, including adding transparent integration with the existing DOM, but developers who are building XML-based web applications can benefit from E4X support in Firefox 1.5.

    You can still use the standard MIME type when using E4X:

    <script type="text/javascript">
    However, E4X syntax may conflict with the common practice of putting scripts into HTML comments (<!--...-->) to hide them from old browsers. E4X may also conflict with the more modern practice of putting scripts within XML CDATA sections (<[CDATA[...]]>) to allow the symbols "<" and ">" in the script (note that this does not apply to HTML). If you see inexplicable syntax errors, add "; e4x=1" to the MIME type:

    <script type="text/javascript; e4x=1">
    Note that scripts in extensions always treat HTML comments as E4X literals. That is, the "e4x=1" is implicit
    ________
    how to make a vaporizer
    Last edited by Divyesh; 01-27-2011, 10:27 PM.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎