Word Blanks last part

Tell us what’s happening:

I get stuck in the last part , what do I miss?

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {


  // Your code below this line
  var myAdjective="dog";
  
  var result="the"+ myAdjective +"was" + myNoun + "and" +myVerb + "very"+myAdverb +""+',and it hit  little cat slowly.';






  // Your code above this line
  return result;
}

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:63.0) Gecko/20100101 Firefox/63.0.

First, you don’t need to declare myAdjective because that is one of the parameter of the functions, so delete this line: var myAdjective="dog"; (also, dog is a noun, big is an adjective)
(You can use the parameters of the function in any order you want, you don’t need to use them in the order they are written)

After that, your phrase is missing some spaces.
If you write console.log(result) below the phrase you have written you can see it in the console

2 Likes