Concatenating Strings with the Plus Equals Operator Won't Pass

Concatenating Strings with the Plus Equals Operator Won't Pass
0

#1

Tell us what’s happening:

This code won’t pass.

Your code so far


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

// Only change code below this line

var myStr = "This is the first sentence.";

myStr += "This is the second sentence.";


 


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator


#2

If you read the instructions carefully, you will find that there is space after period(.) in this sentence.
So, put space here in this string before quotes.
See if that helps.


#3

Thank you. Is there a way to see the concatenated string result? I tried the download my solution, but it takes me to my GitHub.exe location. I am new to GitHub and don’t have it installed yet, if that’s the problem.

If I could have seen the output, it would have been possible to figure this out.


#4

See, in order to see what your code returns or how the code is being executed, the best tool can be chrome’s console. It is one of the most useful tools for a JS programmer.


See if this helps.