Word Blanks question

Word Blanks question
0.0 0

#1

**Hi guys.

I am having some issues regarding bringing each word matched for its own function “cat to myNoun” for example.
follow the code below.**

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";
var sentence = "My " + "myNoun " + "is " + "myAdjective " + "and it " + "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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

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


#2

You are supposed to be using the argument values passed into the function (myNoune, myAdjetive, myVerb, and myAdverb). As soon as you wrap " " around variable, it becomes just a string and no longer is a variable. Remove the " " around the arguments and you will be good to go.


#3

I did but it still stuck, see the code below. :\

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";
var sentence = "My " + myNoun + " is " + myAdjective + " and it " + myVerb + myAdverb+".";
  // Your code above this line
  return result;
}

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

#4

You seem to be missing an important character used to separate words in a sentence.


#5

PS - In the future, please do not post a question on the end of another thread and then duplicate that same question in a new topic. It potentially causes parallel answers and we prefer to keep responses to the same OP’s question in a single thread. I deleted the question out of the other thread since you have all the responses in this thread.