Basic JavaScript - Concatenating Strings with Plus Operator

myStr

should have a value of the string

Asking for myStr should have a value of the string This is the start. This is the end. which i already have ? refer to image in comments.

Your code so far

const myStr = (" This is the start. " + "This is the end."); 
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/105.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Concatenating Strings with Plus Operator

Link to the challenge:

1 Like

Not sure why you added a space at the start of this?

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