Word Blanks Please Help

Tell us what’s happening:
Can someone please help me here. I’m stuck.

(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 + " was " + myAdjective + " and " + myVerb + myAdverb + "." ; // Change this line
// Only change code above this line

Your browser information:

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

Challenge: Word Blanks

Link to the challenge:

Nothing scary, but the challenge explicit says :
"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)."
So, you don’t have to write other words ( “was, and”) only spaces between the variables!

Try something like:
REDACTED

Try

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

// Only change code below this line
var wordBlanks = "My " + myNoun + " was " + myAdjective + " and " + myVerb + myAdverb + "." ; // Change this line
console.log(wordBlanks);
// Only change code above this line

Does the output help?

It worked. Much appreciated.

2 Likes

It is great that you solved the challenge, but instead of posting your solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting solutions.

Thank you for understanding.

1 Like