Skip to content

Fix the tedious spacing issue for the second string by making it clear there should be one there. #7665

Closed
Og-Morrow opened this Issue · 1 comment

2 participants

@Og-Morrow

Challenge Concatenating Strings with Plus Operator has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Example
var ourStr = "I come first. " + "I come second.";

// Only change code below this line

var myStr;

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


@ltegman
Free Code Camp member

I don't think we could make it much clearer without doing it for you:

Note
Watch out for spaces. Concatenation does not add spaces between concatenated strings, so you'll need to add them yourself.

Thanks and happy coding!

@ltegman ltegman closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.