Var junkData = ["Eddie Murphy", 49, "peanuts", 31]; junkData[3] console.log = (junkData[3]); Getting Error : Alas, you should have printed 31, as that is the 4th element!


#1


Replace this line with your code.


#2

syntax error
It's console.log() not console.log = ...
var not Var...
"eddie murphy" not “Eddie Murphy”

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

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.