pav
6/3/2013 - 7:48 PM

array_last_items

//Here's our suits array
var suits = ["hearts","clubs","diamonds","spades"];

//Using a for loop, make this code log 
//the last two items in the array
for (var i=2; i<suits.length; i++) {
    console.log(suits[i]);
}