What Are JavaScript Statements?

By: Dusty Arlia
Published on August 14, 2012
Last Updated on Saturday, July 11, 2015 at 8:10 PM
Total Updates: 9

A JavaScript statement is usually a single step in a JavaScript program. A lot of times, a statement will be a single line of code. Each statement will end with a semicolon (;). The semicolon indicates that the step is over and that the JavaScript interpreter should move on to the next statement. A JavaScript program is made up of one or more statements. Here is an example of a JavaScript statement:

alert('Hello World!');

Comments:

Ad: