Module2 L2
Module2 L2
Module2 L2
Module2 continued
OVERVIEW OF JAVASCRIPT
• ORIGINS
• JavaScript, which was developed by Netscape, was originally named
Mocha but soon was renamed LiveScript.
• In late 1995 LiveScript became a joint venture of Netscape and Sun
Microsystems, and its name again was changed, this time to JavaScript.
• A language standard for JavaScript was developed in the late 1990s by the
European Computer Manufacturers Association (ECMA) as ECMA-262.
• The official name of the standard language is ECMAScript.
• JavaScript can be divided into three parts: the core, client side, and server
side.
• The core is the heart of the language, including its operators,
expressions, statements, and subprograms.
• Client-side JavaScript is a collection of objects that support the control of
a browser and interactions with users.
• Server-side JavaScript is a collection of objects that make the language
useful on a Web server.
JAVA
• Java is programming language
• It is strongly typed language
• Types are known at compile time
• Objects in java are static
• Collection of data members and methods is
fixed at compile time
• Object oriented programming language
JAVASCRIPT
• (a++) * 3
• In both cases, a is set to 8.
• All numeric operations are done in double-precision floating point.
• The precedence rules of a language specify which operator is evaluated first
when two operators with different precedence are adjacent in an expression.
• The associativity rules of a language specify which operator is evaluated first
when two operators with the same precedence are adjacent in an expression.
THE Math OBJECT