Basic JavaScript - Concatenating Strings with Plus Operator

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const myStr = 'This is the Start,' + ' This is the end.'; 

Your browser information:

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

Challenge: Basic JavaScript - Concatenating Strings with Plus Operator

Link to the challenge:

Capitalisation matters. Try using the same case as the request

Welcome to our forum!

It appears there is a misunderstanding with the instructions.
The example shows how to complete the step by using the +=.
Here is the example.

let ourStr = "I come first. ";
ourStr += "I come second.";

It is important to leave a space after the first part after the period, and before the closing quotation.

I hope this helps. Happy coding! :slight_smile:

Find Differences: myStr should have ‘A SiNGLE SPACE’ character between the two strings.

" This is the start. " + " This is the start. "; FALSE
"This is the start. " + “This is the end.”; TRUE

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