Basic Javascipt: World Blanks

Basic Javascipt: World Blanks
0

#1

Hello,
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;
}

#2

Hello,

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;

#3

You are missing a space before “very”.


#4

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

Thank you.


#5

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


#6

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.

console.log(result);

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