Basic JavaScript - Concatenating Strings with Plus Operator

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

I keep getting the error message - "
myStr should have a value of the string This is the start. This is the end.

Your code so far

const myStr = "This is the start. " + "This the end. ";

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 11; TECNO KG5k) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36

Challenge: Basic JavaScript - Concatenating Strings with Plus Operator

Link to the challenge:

Please don’t just “give the answer”, especially to just cut and paste in, especially for curriculum questions. This is a learning platform, we need to guide them.

you have an extra space at the end

I closed the space but still didn’t work

Please share the current state of your code.

I ran the code (in the screenshot) but still got this message -

// running tests
myStr should have a value of the string This is the start. This is the end.
// tests completed

the period/dot/full stop at the end ?

Yesssssss! Thank you!! :joy:

I can’t believe I didn’t see it

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