Array Positions


#1

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

console.log = junkData[3];

I print out 31, still I get the error "Oops, try again. Alas, you should have printed 31, as that is the 4th element!"


#2

hello @orgee

console.log is a function
you have to use it like this
console.log(junkData[3]);

if it doesn't work then it's a bug of exercise.


#3

The exercise is probl bugged... nothing seems to work


#4

if you spam validate button you can have the correction , try with this


#5

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