Basic question about the exercise "Use an Array to Store a Collection of Data"

Basic question about the exercise "Use an Array to Store a Collection of Data"
0.0 0

#1

Hi,
I’m working the basic exercise “Use an Array to Store a Collection of Data”. My code is let yourArray = [‘str’, 22, 'three’, true, false]. Can someone tell me why this doesn’t work?

Thanks for your help,
Clark


#2

Hi @clarkxzhang, your code ran fine for me. Be careful of special characters like and replacing them with non-special characters like ' and ".

Let me know if that helps or if you have more questions!