JAVASCRIPT

 Home  Computers & Internet  Web Programming JAVASCRIPT
What is Javascript?
Javascript Placement
Syntax
Reserved Words
Variables
Data Types
Escaping Characters
Concatenation
Arithmetic Operators
Assignment Operators
Comparison Operators
Boolean Operators
Conditional Operator
If Statements
Else If Statements
If Else Statements
Switch Statements
While Loops
For Loops
Do While Loops
Break Statement
Continue Statement
prompt()
alert()
Date()
Event Handlers
String Object Methods
Math Object Methods
Window Object Methods

JAVASCRIPT SYNTAX

Like any other programming language, javascript also has a set of syntax rules that need to be followed for error-free programming. These are:

Terminate statements with semi-colon

alert('Hello World');

Reserved words and in-built function names are lowercase

alert('Hello World'); is right

ALERT('Hello World'); is wrong

All whitespace is ignored

var name="John";
alert('Hello World');

is the same as:

var name="John";alert('Hello World');

Commenting scripts is allowed

// short comments

\* This can be used if your comments are very long and go over multiple lines */

Home | Privacy Policy | Terms Of Use | Contact Us