Word Blanks - Need help!

Tell us what’s happening:

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "My " + myNoun + "was so " + myAdjective + "that it couldn't " + myVerb + myAdverb + "like the other dogs.";
  // 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.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

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

You need spaces between words. This is what your code is returning.

image

1 Like

you aren’t accounting for all the spaces. you need spaces between each work. You can create spaces using " "

1 Like