I am working on String Interpolation. I tried to run this code.
However, it didn’t work, and it gave me the error message above.
What am I doing wrong?
I am working on String Interpolation. I tried to run this code.
The ''
are stray, as is the extra ,
`
I deleted them and it still didn’t work.
Please show us your raw code, and a link to the exercise. Thanks.
Raw Code:
const myName = “jslade”;
const myCity = “Boston”;
console.log(`My name is ${myName}. My favorite city is ${myCity}.``);
Thanks!
That double tick is an issue.
The program won’t let me delete the double ticks.
I have no idea why.
Never mind. It let me delete the double ticks. I don’t know why it wasn’t working before. Thanks!
Can you paste in a new solution?
console.log(`My name is ${myName}. My favorite city is ${myCity}.`);
Thanks for the new solution! The program let me delete the double ticks though after some persistance.
Thanks for the help!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.