nick34992
3/11/2017 - 8:53 PM

JavaScript For Loop, Band Names

JavaScript For Loop, Band Names

var bands= ['', 'The Cure', 'The Who', 'The Four Seasons', 'Radiohead', 
            'The Velvet Underground', 'Grateful Dead', 'Nirvana', 
            'The Rolling Stones', 'Green Day', 'Linkin Park'];

for (var i = 1; i < bands.length; i++) {
    console.log('Band #' + i + ': ' + bands[i]);
}