9/13 Meet Arrays


#1


I've written this line of code, but the error message I'm getting says the Third Element in the array is not a number. In the array, I have 2 strings and two numbers in the correct order to the instructions.


var arrayJunk = ["String", "String", 25425, 2525];
console.log(arrayJunk);


#2

Can you tell me the exact error message?


#3

Hi, sorry...

"Oops, try again. It looks like the third element in junk isn't a number."


#4

Make your array called junk instead of arrayJunk. :slight_smile:

Does that work?


#5

Yup! I did that without even thinking, not sure if it would work. Now I know! Thanks!


#6

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