I need to know what is wrong with my code

please i need to figure out what is wrong with my code

Your code so far


// example
var ourName = "freeCodeCamp";
var ourStr ="Hello, our name is " + ourName + ", how are you?";

// Only change code below this line
var myName = "justice";
var myStr; = "My name is " + myName + ", I am well!";
console.log(myStr)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.67

Challenge: Constructing Strings with Variables

Link to the challenge:

See the semicolon in the middle of this? What do you think that might be doing to this line?

1 Like

thank you is not supposed to be there,that was a terrible mistake.

1 Like

Easy one to make, glad you understood how that becomes an issue. :+1:

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