Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics Working with Strings Variables and Strings Challenge Solution

JavaScript Basics Story Not working

So why in the story.js for Variables and Strings, when I use the ${} for the const sentence = coding line. I won't display the variables for the adjective, verb, and noun, it just displays the ${adjective}, ${verb}, and ${noun} in the sentence variable. Not sure why it isn't working on my end.

1 Answer

Hi Terry,

Make sure the string that includes the template literals (i.e. ${adjective}) are surrounded by back-tics. Back tics look like this: `

Not at my computer right now, but if I remember correctly, they share the same key as the escape key.

well do I feel silly now, I was using this ' instead of this ` hehe. Thanks, Brandon, really appreciate the quick response was driving me crazy trying to figure out my error.