Word Blanks with Javascript

Tell us what’s happening:

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "The" + myNoun + "chased that" + myAdjective + "man and he" + myVerb + "Very" + myAdverb + "too";


  // 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.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Hi @Oluwaseun,

Currently the output of your code is

"Thedogchased thatbigman and heranVeryquicklytoo"

which does not meet the below mentioned condition in the exercise -

You will also need to account for spaces in your string, so that the final sentence has spaces between all the words. The result should be a complete sentence

So add spaces wherever necessary while concatenating the strings.

.