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!


Replace this line with your code.


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

var junkData = ["Eddie Murphy", 49, "peanuts", 31];


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