Share with   

JavaScript Statements

Details of the term "Statements" in JavaScript language.


JavaScript Statements

Computer Program is a set of “instructions” to be “executed” by a computer.

In programming languages, these programming instructions are called as “Statements”.

Example :-

 

JavaScript statements are composed of : -

Operators, values, Keywords, Expressions and comments.

Below statement tell the browser to write “Hello World” inside the HTML element with id=“demo”.

Most JavaScript programs contains many JavaScript statements.

All statements are executed from top to bottom, one by one, in same order as they are written.

Semicolon separate JavaScript statements.

Add a semicolon at the end of each executable statement.

Multiple statements are allowed on one line if they are separated by semicolons.

Author Image
Guest User

0 Comments