My name and city exercise


using this code but stuck.

let myName = "Akash";
let myCity = "Roorkee";
console.log(`My name is ${myName}. My favourite city is ${myCity}.`);

I dont know what is wrong here


All strings must be surrounded by quotes:

console.log("this is a valid string");
console.log(this will throw a syntax error);


As we can see, once the post is formatted the backticks are printable and do not act as markdown (inline code fragment).

We can better assist if we have the exact lesson context. Please post a link to the exercise. Thanks.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.