JavaScript Node.js Basics Building a Command Line Application Making a GET Request with https

varlevi
varlevi
7,863 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
180,008 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.