Madlib blockade

Tell us what’s happening:
I’m stuck, see the instructions given to me below. I have tried all my best but i just can’t seem to get it right.

wordBlanks should be a string.

Passed

You should not change the values assigned to myNoun , myVerb , myAdjective or myAdverb .

Passed

You should not directly use the values dog , ran , big , or quickly to create wordBlanks .

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

The last part is the challenge how do i do that when the instruction reads; “ou should not directly use the values dog , ran , big , or quickly to create wordBlanks .”

Your code so far


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

// Only change code below this line
var wordBlanks = "myAdjective"; + "myNoun", " " + "myVerb", " " + "myAdverb";
// 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/91.0.4472.164 Safari/537.36

Challenge: Word Blanks

Link to the challenge:

after myAdjective (;) must be (,).

1 Like

You’re combining all those into a single string. No semicolons or commas within there at all.

const age = 51;
const aString = "I am " + age + " years old.";

Think of it as adding…with a string.

1 Like

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