Why won't this work?


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

for (let vacationSpotIndex = 0; vacationSpotIndex < vacationSpots.length; vacationSpotIndex++) {
console.log([backtick]I would love to visit $vacationSpots[vacationSpotIndex][backtick]);
}

<do not remove the three backticks above>

#2

Are you attempting to write a string template?

console.log(`I would love to visit ${vacationSpots[vacationSpotIndex]}`);

#3

That’s right. Thanks. I forgot the curly braces. I feel bad for such a stupid mistake.


#4

Mistakes are part and parcel of learning. Delight in them and learn. No such thing as stupid. It’s only human.


#5

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