Word Blanks for the Madlibs challenge?

I’m so stuck, I need a fresh pair of eyes, can anyone see what I’m missing? I’ve researched, checked hints, I need real help?

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "My " + "myNoun" + " was really " + "myAdjective" + " so we " + "myVerb" + " so " + "myAdverb.";

  // Your code above this line
  return result;
}

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

Your browser information:

User Agent is: Mozilla/5.0 (iPad; CPU OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/77.0.3865.103 Mobile/15E148 Safari/605.1.

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

Hi @LEONARDBRUTON :grinning:

  1. myNoun, myAdjective, myVerb, myAdverb these are arguments so don’t pass them as a string in result.

  2. wordBlanks function has only 4 parameters(myNoun, myAdjective, myVerb, myAdverb) so you should pass only four arguments at the time of function calling.

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "My " + myNoun + " was really " + myAdjective + " so we " + myVerb + " so " + myAdverb +".";

  // Your code above this line
  return result;
}

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

Thankyou so much, I was totally not seeing that! That and adding the period to an added string worked!!!