Why won't this work?

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

Are you attempting to write a string template?

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

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

1 Like

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

2 Likes

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