String concentenation

var myStr=“This is the first sentence.”;
myStr +=“This is the second sentence.”;
i done this code i think there should be no error…
i just looking and working on it 30 minitues

Your code so far


// Only change code below this line

var 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; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Concatenating Strings with the Plus Equals Operator

Link to the challenge:

you always need a space after a period

Exactly, just add a space at the end of the first sentence.

this was really different way to express… the syntax was clear but why they regret our answer

you were not using the required string

Build myStr over several lines by concatenating these two strings: "This is the first sentence. "

(note that there is a space after the period)