Question: Concatenating Strings with Plus Operator

My code:
// Example
var ourStr = "I come first. " + “I come second.”;

// Only change code below this line

var myStr= "This is the start. " + “This is the end.”;

I got it correct but I’m just wondering, why is there a space between the period(.) & the first ending quotation mark(") for this to be correct?

Visual: var myStr= “This is the start.(why does the space here exist for this code to be correct?)” + “This is the end.”;

It there was no space it would look like this: "This is the start.This is the end."

You want a space after a period to start a new sentence.

1 Like

why its not working ?

Let’s play the game of find an extra space :3
Hint" it’s in your last line