JavaScript Introduction

Data Types

{
    number: 0,
    boolean: 0,
    object: {},
    string: '',
    nill: null,
    notdefined: undefined
}

Loops


    for (statement 1; statement 2; statement 3) {
        // code block to be executed
    }
    
    // for/in - loops through the properties of an object
    for (x in obj) {
        // code block to be executed
    }

    while (condition) {
        // code block to be executed
    }

    do {
        // code block to be executed
    } while (condition)

Variables

let x = 0;
const y = 0;
var z = "";
Made with Slides.com