Word Blanks... I am stuck

Word Blanks... I am stuck
0

#1

Tell us what’s happening:
How do you do this one?

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
var myNoun = "dog"
var myAdjective = "big"
var myVerb = "ran"
var myAdverb =  "quickly"

  var result = "I walked my" + myAdjective + myNoun + "and when he saw a squirrell he" + myVerb + myAdverb;

  // 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 (Macintosh; Intel Mac OS X 10.11; rv:61.0) Gecko/20100101 Firefox/61.0.

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


#2

You don’t have to define the variables below, because they are already defined in the call to the function wordBlanks.

And do not forget the spaces between words and variables in the following code.

You can try to console.log(result) and see how your string lacks spaces.

By fixing these, you will see that beautiful window with a green sign of success appearing on your screen.


#3

Oh my Dog thank you so much