Basic Javascipt: World Blanks

Not sure why my code isn’t working here.

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";
   var sentence = "My " + myNoun + "is very " + myAdjective + "and he " + myVerb + "very " + myAdverb;
  result += sentence;
  // Your code above this line
  return result;


Your code should work as everything is correct. Just add spacing before your strings.

var sentence = "My " + myNoun + " is very " + myAdjective + " and he " + myVerb + " very " + myAdverb;
1 Like

You are missing a space before “very”.

@vrum_vrum The OP’s code was not correct and please do not post full solutions.

Thank you.

Hello Randell,

I put a space before very, but it still won’t work. I feel like its something pretty minor because I felt like my initial code was correct

When everything seems “right”, put a console.log statement in before the return statement like below, so you can see what the function is returning. Use Ctrl+Shft+J in Chrome to view the console.


Hint: You are still missing a space before one of the words in the sentence.