What is my mistake here and why?

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

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/94.0.4606.61 Safari/537.36

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

you have too many spaces after the period, only one space after the period

Hi @Sumi286 !

Welcome to the forum!

You should add a console.log after your code so you can see the issue.

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

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