JS Statement
JS Statement
me
JAVASCRIPT
STATEMENTS
JavaScript statements are composed of:
Values, Operators, Expressions, Keywords,
and Comments.
THIS STATEMENT TELLS THE BROWSER TO WRITE "HELLO DOLLY." INSIDE AN
HTML ELEMENT WITH ID="DEMO":
Most JavaScript
programs
contain many
JavaScript
statements.
The statements
are executed,
one by one, in
the same order
as they are
written.
SEMICOLONS ;
Semicolons separate JavaScript statements.
Add a semicolon at the end of each
executable statement:
JAVASCRIPT WHITE SPACE
JavaScript ignores multiple spaces.
You can add white space to your script
to make it more readable.