In HTML, JavaScript statements are "commands" to the browser.
The purpose, of the statement, is to tell the browser what to do.
This JavaScript statement tells the browser to write "Hello Dolly" inside an HTML element identified with id="demo":
document.getElementById("demo").innerHTML = "Hello Dolly.";
For a tutorial about Statements, read our JavaScript Statements Tutorial.
JavaScript statements often start with a statement identifier to identify the JavaScript action to be performed.
Statement identifiers are reserved words and cannot be used as variable names (or any other things).
The following table lists all JavaScript statements: