I cant pass this challenge even though my code looks right?! HELP

Tell us what’s happening:
I have no idea what’s wrong with my code. I looked at the solution and it p much the same thing? or is there something im missing… Please help!

this is the thing i cant seem to complete :
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).

Your code so far


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

// Only change code below this line
var wordBlanks = "My " + myNoun + "is " + myAdjective + "but it " + myVerb +
"very " + myAdverb + " . "; 
// Only change code above this line

Challenge: Word Blanks

Link to the challenge:

Make sure your final string (wordBlanks) has space characters between all words of the sentence. Right now, that is not the case. You are missing 3 spaces. Also, you do not need a space character before the period in the sentence.

1 Like

Im sorry but I don’t know where I need to put those extra spaces?

Add a console.log(wordBlanks) at the end and look at it :wink:

1 Like

oh my goodness thank you :laughing: i should’ve realised that sooner hahaha

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