Word Blanks: Need code help

Tell us what’s happening:

Can’t seem to figure out the correct code for this exercise

Your code so far

// Your code below this line
var myNoun = “dog”;
var myAdjective = “big”;
var myVerb = “ran”;
var myAdverb = “quickly”;
var result = “My” + myAdjective + myNoun + “Alfred” + myVerb + myAdverb + “around our yard.”;

// Your code above this line
return result;
}

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


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 = "My" + myAdjective + myNoun + "Alfred" + myVerb + myAdverb + "around our yard.";

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

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

  1. The variables myNoun, myAdgective, etc are being passed into your function as arguments. Do no set them yourself. Just use the variables.
  2. As the challenge states, you need to have spaces between all words. Currently, the only spaces in your result are on either side of “our”.

In the following code

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";

  // Your code above this line
  return result;
}

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

Backstage they create a function named wordBlanks with four parameters. The function need to return 4 value (for instance: dog, big, ran and quickly). You need to add the parameters in the function and separe them with “” like below

var result = myNoun+" "+myAdjective+" " +myVerb+ " "+myAdverb;

So the function will be totally like this

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = myNoun+" "+myAdjective+" " +myVerb+ " "+myAdverb;

  // Your code above this line
  return result;
}

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

ok I see what you mean!

if your problem is solved. mark the sollution down with the green v box :3 so that we know its solved