Basic JavaScript - Word Blanks

Why is this " . " also a part of the string concatenation? what does " . " represent? Is that just the way to close out a line with these specific actions?

Your code so far

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

Your browser information:

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

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

The “.” is just a period. It is there because the instructions want a complete sentence and complete sentences have punctuation at the end.

face palm Thank you Jeremy!

1 Like