For Loops

Video

JavaScript Notes

JavaScript
    var names = ['Jeff Lebowski', 'Donnie Kerabatsos', 'Walter Sobchak', 'Bunny Lebowski', 'Karl Hungus', 'Brandt', 'Maude Lebowski', 'Jackie Treehorn'];
    var numNames = names.length;

    // initialize; test; increment
    for ( let i = 0; i <numNames; i++ ) { 
        console.log(names[i])
    }
    for ( let i = numNames-1; i >=0; i-- ) { 
        console.log(names[i])
    }