Word Blanks unable to get it

Word Blanks unable to get it
0.0 0

#1

Tell us what’s happening:
i m not getting it can anyone help me with this?

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";

  // 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 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

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


#2

What part are you not getting? If I give you a noun, an adjective, and verb, and an adverb, could you create a sentence by filling in the necessary extra words like The, A, An and characters such as spaces and punctuation? If the answer is yes, then you can concatenate these extra pieces with the given arguments (words) passed into the function to return a final string which will be a full sentence.


#3

am i supposed to create more variables like adverb , noun etc or something else ?
i am not familiar with the working of function in js
if u dont mind can u plz solve it for me
it’ll nt take more than a min.
thanks!!


#4

I will not give you the solution, but I will try to point you in the right direction by giving you more information. You do not need to create any extra variables. Functions have parameters which act as placeholders for values passed into the function. In this case the wordBlanks function already has those named parameters (see below):

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {

When you click the Run the Tests button, the testing program behind-the-scenes will call the wordBlanks function and pass in the nouns, adjectives, verbs, and adverbs as seen in the example call below:

wordBlanks("dog", "big", "ran", "quickly");

All you have to do is concatenate a new string using the values passed into the function (the arguments) which will be in variables myNoun, myAdjective, myVerb, myAdverb (the parameters defined for the function). See the following lessons if you can not remember how to concatenate strings/variables together.

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator/

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/appending-variables-to-strings/

Remember, you will need to come up with your own extra words and space and punctuation to add to the four values passed to the function.


Word Blanks help please
Word Blanks assignment makes no sense to me