Javascript word blanks game

Tell us what’s happening:
Hello, i am having a problem with this,
i got everything right, except the part where it says ** “myAdverb” separated by non-word characters (and any additional words in your madlib).**

can someone help?

Your code so far


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

var wordBlanks = "The " + "myNoun" + ", was very " + "myadjective" +   " and he " + "myVerb" + " very " + " _ " + "myAdverb" + "."; // Only change this line;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Word Blanks

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/word-blanks

You are not actually using any of the variables (e.g. myNoun) in the wordBlanks string. Instead, you are just concatenating strings only (e.g. "myNoun"). Pay attention to the use of quotation marks.

please, tell me my errors and what i can do to get pass this stage.

"myNoun" is a string
myNoun is a variable that holds a string

right now the sentence is just The myNoun, was very myadjective and he myVerb very _ myAdverb.

you need to use the variables so that the words added inside the string are the ones hold inside the variables

1 Like

thanks. i got it now. how dumb i was.