ECMAScript is an object-oriented scripting language that connects through interfaces called Document Object Models (DOMs) to applications, especially to the server side ([web servers]?) and the client side ([Internet browsers]?) of internet applications. Many web sites use client-side ECMAScript technology to create powerful dynamic web applications.
Data structures
The primary data structure is an [associative array]? similar to hashes in the Perl programming language. Strings are objects. (To do: more information on the language)
Control structures
If ... else
if (condition)
{ statements1}
[else { statements2}]
While loop
while (condition)<br>
{ statements}<br>
Do ... while
do
{statements}
while (condition);
For loop
for ([initial-expression;] [condition;] [increment-expression])</br>
{ statements}
Switch expression
switch (expression)
{ case label : statement;
break;
case label : statement;
break;
...
default : statement;}
External link: