Stuck on MyName and MyCity excercise


#1

I executed the code with backticks but I cannot figure out why I’m getting an error message. Can anyone tell me what I’m doing wrong?

let myName = ('Richelle');
let myCity = ('Portland');

console.log(`My name is $(myName). My favorite city is $(myCity).`);

#2

Parens are not needed, and should not be used.

let myName = "Richelle";
let myCity = "Portland";

#3

Ah! Gotcha! Thank You!


#4

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