Word Blanks Challenge

Word Blanks Challenge
0

#1

Tell us what’s happening:

Why doesn’t this work. On the console there is a readable sentence but the last 2 do not have the green check. What is going on!

Some one explain to me why this works => result+= “My “+myAdjective+” “+myNoun+” “+myVerb+” very “+myAdverb+”.”; and mine does not.

What am I missing?

Your code so far

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line
  result += "my " +myNoun+ " is very " +myAdjective+ " and " +myVerb+ " away " +myAdjective+ " recently.";

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");

Your browser information:

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

Link to the challenge:


#2

Your solution does not pass, because the challenge wants you to use the 4 variables (myNoun, myAdjective, myVerb, and myAdverb) in your function. You are only using 3 of the 4 required variables (myNoun, myAdjective, myVerb) with myAdjective being used twice.


#3

Thanks Randell!

I figured it out 2 minutes after I posted! I feel like such a dope.