I have problem related to javascript?

var wordBlanks = “A” + “myNoun” + “with” + “myAdjective”+ “ears” + “myVerb”+ “towards” + “man” + “myAdverb” + “.”;

var myNoun = “dog”;
var myAdjective = “big”;
var myVerb = “ran”;
var myAdverb = “quickly”;

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

Take a look at the string you’re building - are you including spaces?

1 Like

I don’t know if you can reference a variable before you create create it in the code - but you most certainly can’t reference a variable by placing it in quotes, because those turn it into a string.

1 Like

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