Introduction to 'for' loops in Js 10.Array Positions


#1

Please anyone assist that the given below executes but still shows error {{{{Oops, try again. Alas, you should have printed 31, as that is the 4th element!}}}}
what was that where do I am doing wrong?

var junkData = ["Tom", 49, "Belly", 31, "Sellvi"];
console.log=junkData[3];


#2

Would you mind giving the lesson and number this question is in because it would seem your chosen lesson is wrong for this question


#3

There is no "=" for a console.log. It's just console.log(junkData[3])


#4

Introduction to 'for' loops in Js
10.Array Positions


#5

Hi code complied Thanks tekkie1618


#6

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