Word Blanks What is wrong?

Word Blanks What is wrong?
0

#1

Tell us what’s happening:
I just can’t get this right. I have change the sentense several times and it just won’t work.

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = myNoun + "would be so much" + myAdjective + myAdverb + "if we all" + myVerb + "each others";

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("world", "better", "place", "love");

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

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


#2

You should separate myNoun and the word “would” with a space character
You should also separate myAdjective and myAdverb with a space
and separate “all” and myVerb with a space
and separate myVerb and “each” with a space

Once you have enough spaces in the sentence it should work much better.


#3

Thank you for your answer.
Now it looks like this:
var result = myNoun + " would be so much " + myAdjective + myAdverb + " if we all " + myVerb + " each others ";

…and still doesn’t work. :frowning:


#4

still missing a space between these two as mentioned previously…


#5

It shows it differently here. There is a space between these two and now in this example there is space x2: myAdjective + myAdverb


#6

to add the missing space rewrite to:

var result = myNoun + " would be so much " + myAdjective + " " + myAdverb + " if we all " + myVerb + " each others ";

#7

:see_no_evil: Ok now I feel stupid. Thank you so much, now I got it through. :raised_hands:


#8

don’t worry about it. You’re learning a new way of communication and mistakes are bound to happen.