Array-foreach-loop

let arr = [1, 2, "test", "bob", false, 33];

/*
    Regarding the fact that forEach iterates
    over whole array we do not need length
    
    Structure of forEach looks like this
    array.forEach(function(element) { 
        console.log(element);
    });
*/

arr.forEach(function(el){
    /*
        This code says 
        Go over each item in array
        and console.log it
    */
    
    console.log(el);
    /*
        Output: 
        1
        2
        test
        bob
        false
        33
    */
})