How to write this string

Tell us what’s happening:

Your code so far


var myStr ="This is the start. " + " This is the end. "; // Change this line

Your browser information:

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

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

Hi, it looks like you forgot to write a question again.

Please fill out the Tell us what’s happening section. Learning how to ask technical questions about code is an important part of learning how to become a programmer!


You have a typo in your string

"This is the end."

"This is the end."

There shouldn’t be extra space

Hi @rash28!

Whenever you have issues with your code you can use a powerful tool called console.log().

It will print exactly what your code looks like and help you find the errors.

var myStr ="This is the start. " + " This is the end. "; // Change this line
console.log(myStr)

will print this

So, as mentioned earlier, you have a spacing issue.

1 Like

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