Word Blanks chanllenge

Word Blanks chanllenge
0

#1

Tell us what’s happening:

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";
var a = "My";
var b = "and hunter";
var c = "in the mess";
  // Your code above this line
  return result = a + "myAdjective" + " " + b + "myNoun" + " " + "myVerb" + " " + "myAdverb"+ c ;
}

// Change the words here to test your function
wordBlanks("My","and hunter","in the mess", "dog", "big", "ran", "quickly");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3169.1 Safari/537.36.

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


#2

Ok that is interesting… you obviously understand a lot of what you need to be doing but you missed a vital part.

The line above shows a function called wordBlanks, correct?
Do you see those 4 words in the brackets, theses are called parameters , they are very similar to variables. They contain values that your function needs to do something interesting. To use them, just write the names down (don’t put them in double quotes).

So try removing the double quotes around each parameter in your return line and see what happens.