Word Blanks assistance

Word Blanks assistance
0

#1

Tell us what’s happening:
my code isnt working

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  myAdjective ="big";
  myNoun = "dog";
  myVerb = "ran";
  myAdverb = "quickly";
  
  var result = '<My +myAdjective+ "lovely" +myNoun+ , +myVerb+ +myAdverb+ after me.>'

  



  // 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; rv:63.0) Gecko/20100101 Firefox/63.0.

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


#2

First, you don’t need this part:

myAdjective ="big";
myNoun = "dog";
myVerb = "ran";
myAdverb = "quickly";

These variables are assigned by the function call at the bottom:

wordBlanks("dog", "big", "ran", "quickly");

Second, you are currently assigning a static string to result. Instead, you should use the following pattern:

var result = 'string' + variable + 'string' + variable + 'string' + variable + 'string' + variable + 'string'

Remember that each 'string' should contain spaces to separate the words.