Word blank please help

Hi, the only error it’s giving me is:

“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 in your madlib).”

But I feel I’ve concatenated it correctly. It’s a poorly worded task.

Thanks in advance.

var myNoun = "dog";
var myAdjective = "big";
var myVerb = "ran";
var myAdverb = "quickly";

// Only change code below this line
var wordBlanks = "One day a " + myNoun + " found a " + myAdjective + " caterpillar so it " + myVerb + "the block" + 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/84.0.4147.125 Safari/537.36.

Challenge: Word Blanks

Link to the challenge:

Hello! Welcome to the forum :partying_face:!

The problem you’re having is that there are some values with a missing space:

var wordBlanks = "One day a " +
myNoun +
" found a " +
myAdjective +
" caterpillar so it " +
myVerb +
"the block" + // <-- Here. Write " the block " instead
myAdverb +
".";
1 Like

Thanks, that works. The error message threw me off because it did not apply to the mistake I was making with the spacing.

1 Like