Consider following snippet:
 var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby"]; console.log(languages[2]); 
What will be printed to the console?
Explanation
You refer to an array element by referring to the index number. [0] is the first element in an array. [1] is the second. Array indexes start with 0.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback