Statements

Statements often start with a keyword.

Semicolons separate statements.

Multiple spaces are ignored. So you can add white spaces to make code more readable. As example, avoid code lines longer than 80 characters.

Curly brackets are used for grouping statements into code block.

var txt ="My text";
var characters = "";

for (ch of txt) {
characters += ch +", ";
}

// now characters = "M, y, , t, e, x, t,"