JavaScript specials
Code structure
alert('Hello'); alert('World');
alert('Hello')
alert('World')
alert("There will be an error after this message")
[1, 2].forEach(alert)
function f() {
// no semicolon needed after function declaration
}
for(;;) {
// no semicolon needed after the loop
}Strict mode
'use strict';
...Variables
Interaction
Operators
Loops
The “switch” construct
Functions
Last updated