For 5/7 I don't understand how the variable text is an array. Is there something I missed? Thanks! (BTW I passed this level, I just don't understand how it works.)
text is not an array but a string. In simple terms you can iterate over a string just as you would an array
A variable holds a single value of data, however a variable holding a string, is really just holding an array of values concatenated as a string. It's very simplified for us users, but it's essentially an array at this point. You can test this out and you don't even have to do anything fancy at all!
var string = "This string ain't what it seems."; //Declare out string variable string; //Now use array syntax to call an index within the string //You should get the letter S
Wait, so you mean that you can use strings as you would arrays, except it doesn't call the whole word, just the letter? Ohhhhhhhhhhhhhhhhh. That makes a lot of sense.