Word Blanks - Stuck at the second line

Word Blanks - Stuck at the second line
0

#1

Tell us what’s happening:
Can someone please help me with this? I am stuck on the second line :frowning:

Your code so far

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line
  
result+= "My "+myAdjective+" ran out "+myNoun+" "+myVerb+" quickly "+myAdverb+".";
  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");{
var result = "";
  
result += " A "+big+"+ "+dog+" "+ran+" across the green field "+quickly+". ";
  
return result;
}```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/word-blanks

#2

There is nothing wrong with your code, you should just delete the following lines of code:

{
var result = "";
  
result += " A "+big+"+ "+dog+" "+ran+" across the green field "+quickly+". ";
  
return result;
}

#3
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line
  result = "It was really" + " " + myAdjective + " " + myNoun + " " + ", and we" + " " +  myVerb + " " + "ourselves" + " " +  myAdverb;

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");

We have to give spacing correctly to execute and also remove this below part of code.

{
var result = "";
  
result += " A "+big+"+ "+dog+" "+ran+" across the green field "+quickly+". ";
  
return result;
}

I hope it might help you…


#4

Thank you very much. It really helps!