My name and city exercise


#1

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


#3

All strings must be surrounded by quotes:

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

#4

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.


#5

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