Arrays - My code is wrong but i don't know why


#1

I don’t understand what I did wrong here. On the screen the output is exactly the same as what i typed after =. So everything from [ to ] is being printed.

What did i do wrong?

var bucketList = [‘Learn witchcraft’,‘Swim with sharks’,‘Travel to the moon’];

console.log(bucketList);

#2

Link to exercise, please. Thanks.


#3

Excuse me! https://www.codecademy.com/courses/learn-javascript/lessons/arrays/exercises/create-an-array?action=resume_content_item


#4

Your code looks okay. The difference I see in the example is white space after the commas. May not matter (as it should not, but you never know).


#5

Hmm okay. It didn’t change after adding the white spaces. I’ll figure it out. Thank you!


#6

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