Word Blanks Lesson HELP

Tell us what’s happening:

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line var myNoun= “dog”;
wordBlanks(“dog”, “big”, “ran”, “quickly”);
var myNoun = “dog”;
var myAdjective = “big”;
var myVerb = “ran”;
var myAdverb = “quickly”;

var result = “My” + “myNoun” + “, myAdjective” + “myVerb” + “myAdverb.”;

return result;
}

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line var myNoun= "dog";
wordBlanks("dog", "big", "ran", "quickly");
var myNoun = "dog";
var myAdjective = "big";
var myVerb = "ran";
var myAdverb = "quickly";

var result = "My" + "myNoun" + ", myAdjective" + "myVerb" + "myAdverb.";

  
  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_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36.

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

First, you do not need to define the parameters of a function as variables within itself.
Second, in this case, there is no need to call the function within itself.

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line var myNoun= “dog”;

wordBlanks(“dog”, “big”, “ran”, “quickly”);
var myNoun = “dog”;
var myAdjective = “big”;
var myVerb = “ran”;
var myAdverb = “quickly”;

var result = “My” + “myNoun” + “, myAdjective” + “myVerb” + “myAdverb.”;

return result;
}

The words they provided on the last line as arguments for the function, are the words you have to use. What they want you to do is add some of your own words in between their provided words.

Lastly, when you are concatenating strings (using the + sign), do not wrap the variables (eg. myNoun) in quotations. It is already a string.

Thanks! I went back and aced this!!!j