What am I doing wrong here?:
let myStr; = “This is the first sentence.”;
myStr; += “This is the second sentence.”;
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.96.36.199 Safari/537.36
Link to the challenge:
Try Removing “;” from the variable name: myStr
The exercise also asks to add a space between the two sentences. Add that at the end of the first one or the beginning of the second one.
myStr = "This is the first sentence."
myStr += " This is the second sentence."
Hi hiRafa, Thanks for replying.
Unfortunately that isn’t working either… this is what comes up when I put in your answer
should have a single space character between the two strings.
should have a value of the string
This is the first sentence. This is the second sentence.
// tests completed
Never mind it was the space that I forgot lmao thanks for your help!