803 Java Scirpt Class XII.
803 Java Scirpt Class XII.
Some people think that Java and JavaScript are same but both are
two completely different languages.
Application of JAVASCRIPT
❑ Developing Multimedia Applications
❑ Create Pages Dynamically
❑ Interact with the User
❑ JavaScript Objects are Similar to Dictionaries
Features of JavaScript
❑ Browser Support
❑ JavaScript can be used on Client Side as well as on Server Side
❑ Functional Programming Language
❑ Support for Objects
❑ Run-time Environment
❑ Vendor-specific Extensions (managed by Mozilla Foundation)
❑ Object Type (Pre define and User define)
Java Script
SERVERSIDE JAVASCRIPT
Server-side JavaScript is also known as LiveWire. Like client-side
JavaScript, server-side JavaScript is also embedded within a HTML
document. When a query is made by the client, web server executes the
script after interpreting it.
Java Script
-For example :
-// This is a single-line comment.
- /* This is a multiple-line comment. It can be of any length. */
Java Script
LITERALS
Literals refer to the constant values, which are used directly in
JavaScript code.
For example:
a=10;
b=5.7;
document.write(Welcome);
In above statements 10, 5.7,
Welcome are literals.
Java Script
IDENTIFIERS
Identifiers refer to the name of variables, functions, arrays, etc. created by the programmer.
It may be any sequence of characters in uppercase and lowercase letters including numbers or
underscore and dollar sign.
An identifier must not begin with a number and cannot have same name as any of the keywords of
the JavaScript.
In
Java Script
In
Java Script
In