Whats wrong with my code?

Whats wrong with my code?
0

#1

Tell us what’s happening:

Your code so far


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

  // Your code above this line
  return result;
}

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; 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

There are no spaces between your words. You are basically returning dogbigranquickly. I know that you changed the function call wordBlanks("dog", " big ", " ran ", " quickly "); to have spaces, but that’s not how the test works.

You need to include spaces inside of your function, for example:
var result = myNoun + " " + myAdjective

From 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.


#3

it worked…
thank you