what is wrong with my code
Your code so far
var 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/92.0.4515.131 Safari/537.36 Edg/92.0.902.67
Challenge: Concatenating Strings with Plus Operator
Link to the challenge:
myStr variable holds the value
"This is the start.This is the end.".
The test expects the value to be
"This is the start. This is the end.".
oh my God i understand now,i literally forgot the logic.thanks
I thought everything was alright but he had a problem with his browser?
var myStr = “This is the start.” + “This is the end.”;
He is actually concatenation two strings and assigning it to a variable right?
If yes, when he output it he should get the exact result. I personally follow the same approach when validating email address that contains strings.
There was a space missing.
Yes, that’s very true. I can see it now.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.