Why JAVASCRIPT?
How to write and run Javascript
How to Add Javascript to Webpage
Representing data with values
Primitive Data Types
- Primitive Data Types
- Number Type
- String Type
- Boolean data type
- Undefined and null
- JavaScript Type Conversions
Operators
Expressions
Statements
- What are statements?
- Expression Statements
- Compound and Empty Statements
- Declaration Statements
- Conditional statements
- Loop statements
- Jump Statements
- Assignments
Arrays
The simplest kinds of statements in JavaScript are expressions that have side effects. Assignment statements are one major category of expression statements. For example:
greeting = "Hello " + name;
i *= 3;
The increment and decrement operators, ++ and –, are related to assignment statements. These have the side effect of changing a variable value, just as if an assignment had been performed:
counter++;
Function calls are another major category of expression statements. For example:
alert(greeting);
window.close();