Stuck on Word Blanks Lesson

Stuck on Word Blanks Lesson
0

#1

*Tell us what’s happening:
Im stuck at the Word Blanks lesson, im not sure what is wrong with this code.

Also, what is the “cat , little ,hit, slowly” part??

Your code so far
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line

var myNoun = “dog”
var myAdjective = “big”
var myVerb = “ran”
var myAdVerb = “quickly”
var result = “The”+ " " + myAdjective +" “+ myNoun +” “+ myVerb +” "+ myAdverb;
// 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_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

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


#2

You should not be creating new variables. The values are passed to the function via the parameters of the same name. All you have to do is use the parameter names accordingly (which you are attempting to do in the 2nd to last line of your code).


#3

Thanks ! it was very simple indeed.