Hey all so this code here in the picture is confusing me right. So basically the outcome of this code if you run it is.
“I would love to visit Bali
I would love to visit Paris
I would love to visit Tulum”
This confuses me because inside of the loop at vacationSpots[i] I see that variable [i] in the brackets as vacationSpots after the loop. because as the loop iterates through the length of vacation spots I think it will stop at ‘Tulum’ because its index number is 2. So I don’t see why it prints all 3 because the way I understand it should just print “I would love to visit Tulum” because the index number is just  and not [0, 1, 2] or is it?
I tried searching everywhere for the answer but I really found my first roadblock lol…
HALP and thank you in advance!!