My Code is below. It doesn’t pass in FCC, but I get the correct sentence in Chrome console. Why does the test area talk about Cats, when my noun is defined as dog??
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 " + myNoun + " was " + myAdjective + ", but he " + myVerb + " " + myAdverb + “!”;
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks(“dog”, “big”, “ran”, “quickly”);
Console sentence:
“The dog was big, but he ran quickly!”