Word Blanks issue with first result

Tell us what’s happening:

I keep getting “wordBlanks(“dog”, “big”, “ran”, “quickly”) should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).”. The second one passes so I’m not sure why the first one won’t.

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = " 'The ' + 'big ' + 'dog ' + 'ran ' + 'quickly.' ";
  var result = " 'The ' + 'little ' + 'cat ' + 'hit ' + '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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

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

You are supposed to use the arguments (contained in myNouse, myAdjective, myVerb, myAdverb) passed to the wordBlanks function to build the sentences. Make sure you are using those variables to create the final string.

Ok so I changed them to those variables and it’s still giving me the same error.

When you have two variables with the same name only the last definition is considered by whatever is after the variable