Sunday, 6 July 2014

== Array positions ==

Instructions:
Print out the fourth element of the array.
1. Start with figuring out how to express what the fourth element in the array is.
2. Then use console.log() to print things out!

Solve:
var junkData = ["Eddie Murphy", 49, "peanuts", 31];
console.log(junkData[3]);
 

No comments:

Post a Comment