Basic Javascript: Word Blanks

Prompt:
In this challenge, we provide you with a noun, a verb, an adjective and an adverb. You need to form a complete sentence using words of your choice, along with the words we provide.

You will need to use the string concatenation operator + to build a new string, using the provided variables: myNoun, myAdjective, myVerb, and myAdverb. You will then assign the formed string to the wordBlanks variable. You should not change the words assigned to the variables.

You will also need to account for spaces in your string, so that the final sentence has spaces between all the words. The result should be a complete sentence.

Code

const myNoun = “dog”;
const myAdjective = “big”;
const myVerb = “ran”;
const myAdverb = “quickly”;

// Only change code below this line

const wordBlanks = "My " + myNoun + "is "+ myAdjective + "and " + myVerb + " " + myAdverb + ". ";

Error
wordBlanks should contain all of the words assigned to the variables myNoun , myVerb , myAdjective and myAdverb separated by non-word characters (and any additional words

Me
I believe I properly spaced the sentence although I am still getting this error. I am stuck here.

Is there a space before the word is?

Same question.

1 Like

Thank you, that helped.

I added spaces in front of is | and and it helped.