// Without space at the end
var myStr = "This is the first sentence.";
myStr += "This is the second sentence.";
console.log(myStr);
// -> This is the first sentence.This is the second sentence.
// With space
var myStr = "This is the first sentence. ";
myStr += "This is the second sentence.";
console.log(myStr);
// -> This is the first sentence. This is the second sentence.
// Without space at the end
var myStr = "This is the first sentence.";
myStr += "This is the second sentence.";
console.log(myStr);
// -> This is the first sentence.This is the second sentence.
/\
/ \
/ \
| |
| |
| |
| |
| |
There's a space missing after that period
// With space
var myStr = "This is the first sentence. ";
myStr += "This is the second sentence.";
console.log(myStr);
// -> This is the first sentence. This is the second sentence.