Word Blanks challenge last stage

Tell us what’s happening:
Describe your issue in detail here.
I have completed the challenge up to the following point

// Only change code below this line
const wordBlanks = "The " + "myAdjective" + "" + "myNoun" + "" + "myVerb" + "" +  "myAdverb" + "."; // Change this line

I cannot deal with:
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


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

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

Challenge: Word Blanks

Link to the challenge:

When you put quotes around this, you no longer have a variable. You need to use myAdjective (and the others) without the quotes.

Edit: I adjusted the formatting of your code. See how variables are one color and strings are another? You need to use the variables, not strings with the names of the variables.

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