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


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’];



Link to exercise, please. Thanks.


Excuse me!


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).


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


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