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 Node.js Basics 2017 Building a Command Line Application Making a GET Request with https

varlevi
varlevi
8,113 Points

Code challenge doesn't let me use template literals

I am confused. The node.js video emphasizes using string literals, but then when I use them in the code challenge, it brings back an "ILLEGAL" alert. Upon changing the backticks to double quotes, however, it passes me on to the next task. Does anyone have an explanation?

1 Answer

Steven Parker
Steven Parker
231,236 Points

I'm not sure where in this challenge you would use a template literal. None of the strings in the challenge need to be expanded. But sure, they should also perform like quotes for simple strings.

I'd bet the engine that evaluates this challenge was just never updated to consider a backtick as a string identifier.