Word Blanks problems!

Tell us what’s happening:
This does not seem to work any ideas?
Thanks in advance!

Your code so far

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

// Only change code below this line
const wordBlanks = "My " + 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/98.0.4758.102 Safari/537.36

Challenge: Word Blanks

Link to the challenge:

I don’t think this does what you think. The empty string here has literally nothing inside of it. Specifically, it does not have a space inside of it.

okey thanks for that! But it wasn’t the issue that it was complaining about. Cause I tried without at first and nothing. It says this (even after taking those away)

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).

You need something between the words, but currently you are adding literally nothing. You need to add actual spaces between the words.

Try console.loging the result. All your words are run together.

const wordBlanks = "My " + myAdjective + "silly" + myNoun + "that" + myVerb + "so" + myAdverb + ".";

still nothing. it says the same thing as earlier

"put" + " " + "spaces" + " " + "between" + " " + "your" + " " + "words"


I got it after I saw what it did. :sweat_smile: did not understand that you meant spaces between each sides :sweat_smile: I only put it in one side "hei " instead of " hei ". Anyways got it, thank you so much for your patience :laughing::pray:

1 Like

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