Word Blanks, should contain all of the passed in words separated by non-word characters (and any additional words in your madlib)

Word Blanks, should contain all of the passed in words separated by non-word characters (and any additional words in your madlib)
0.0 0

#1

Tell us what’s happening:

Your code so far

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

  // Your code above this line
  return result;
}

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36.

Link to the challenge:


#2

Why are you calling the same function inside itself?


#3

So how can i pass this challenge
Can you help?


#4

All you need to do is assign result a sentence (a string of words separated by spaces) which include the variables myNoun, myAdjective, myVerb, and myAdverb. You will use the + operator to concatenate the words together. You will probably want to put some filler words such as “The/the” or “A/a” to make sentence complete.