Word Blanks - help!

Tell us what’s happening:
What am I not getting? I honestly have no clue what is being asked for here. I have spent WAY too long trying to figure this out with the hints and re-reading the question a hundred times. Help would be greatly appreciated.

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";
result = 'The '+myAdjective+'brown '+myNoun+myVerb+'very '+myAdverb+'up the hill.';
  // 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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

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

You can always console.log your function and see what it returns. For example:

console.log(wordBlanks("dog", "big", "ran", "quickly"));

Paste it in the editor and wait a second the code will run automatically and you can see the answer.

In your case, your function is returning this:

The bigbrown dogranvery quicklyup the hill.

It doesn’t look right, the tests are asking to put spaces between words.

1 Like

Thank you. I didn’t realize I could console log. I’m new to this freecodecamp and was blazing along until this question. I’ll keep working on it with your advice.

HOLY SCHMIDT! It worked! THANK YOU!!!