Word Blanks - concatenation operator +

const myNoun = "dog";

const myAdjective = "big";

const myVerb = "ran";

const myAdverb = "quickly";

// Only change code below this line

const wordBlanks = "The " + myAdjective + "" + myNoun + "" + myVerb + "" + myAdverb + ".";


// Change this line

// Only change code above this line

Can someone please tell me why this sentence doesn’t work? I’ve literally copied the video advice here.

The words need spaces in between.

Try logging the sentence to see if you have the required spaces.

thank you! :wink: Sorted, noticed that didn’t add enough spaces.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.