0

I'm working through a course and knew I had to use a template literal to get what I needed in the console. only when I finish it and save, it prints what I typed and didn't do its template literal thing... I can't find anything online and not sure where I went wrong.

enter image description here enter image description here

pilchard
  • 12,414
  • 5
  • 11
  • 23
  • 2
    You need to use backticks not single quotes `\`` not `'`. See the docs [Template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) *'Template literals are literals delimited with backtick (`\``) characters...'* – pilchard Apr 03 '23 at 00:56
  • 1
    First, please add your code as text, not images. Second, template literals are written with backticks instead of single quotes. – InSync Apr 03 '23 at 00:57
  • Duplicate: [Template literals like 'some ${string}' or "some ${string}" are not working](https://stackoverflow.com/questions/37245679/template-literals-like-some-string-or-some-string-are-not-working). Also, [don't post images of code](https://meta.stackoverflow.com/questions/385519/include-dont-post-images-of-code-in-the-guide) – pilchard Apr 03 '23 at 00:59

0 Answers0