Base Data Types
number 1, 12.4, 44e5, 44e-5
boolean true, false
string "Syntax", 'Nut'
undefined undefinedA variable without value
object {key:'value'}, [1,2,3]Arrays are considered objects in Javascript
function function functionName(){}
Flow Control
if / else / else if
if (boolean expression) {
    // statements
} else if (boolean expression) {
    // statements
} else {
    // statements
}
while
while (boolean expression) {
    // statements
}
do while
do {
    // statements
} while (boolean expression);
for loop
for (i = 0; i < size; i++) {
    // statements
}
for in
for (key in object) {
    // statements
}
for of
for (key of iterable) {
    // statements
}
switch / case / default
switch(var) {
    case varValue1:
        // statements
        break;
    case varValue2:
        // statements
        break;
    default:
        // statements
}
try / catch / finally
try {
    // statements
} catch (error) {
    // statements
} finally {
    // statements
}
function
function functionName(arg1, arg2) {
    // statements
    return value;
}
Hello World
console.log("Hello world!");
Boolean Logic
Comparisons <, <=,>, >=
Equals == Equal value
=== Equal value and type
!= Not equal value
!== Not equal value and type
And &&
Or ||
Negate !(boolean expression)
Bitwise Operators
And &
Or |
Exclusive Or (XOR) ^
Not ~
Left Shift <<
Right Shift >>
Arithmetic Operators
Add +
Subtract -
Multiply *
Divide /
Modulus %
Increment i++ post
++i pre
i += 1; assignment
Decrement i-- post
--i pre
i -= 1; assignment