Tell us what’s happening:
Your code so far
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line
var result = "There was" + "dog" + " , and it was" + "big" + "ran" + "quickly" + "towards us.";
var result = "My"+ "cat" + "little" + "playing with ball and" + "hit" + "so" + "walking" + "slowly.";
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
wordBlanks("cat", "little", "hit", "slowly")
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36.
Link to the challenge:
You need to use the variables that are being passed into the function:
myNoun, myAdjective, myVerb, myAdverb
You also don’t need two different results variables, just one passing in those variables from above. So replace dog, big, ran, and quickly with whats being passed into the function.
You also need to make sure that all the spacing is correct
Returning (“The” + myNoun) does not render the same as ("The " + myNoun)
The first one returns Thedog the second returns The dog.
For another example your string up top would return
var result = "There was" + "dog" + " , and it was" + "big" + "ran" + "quickly" + "towards us.";
//There wasdog , and it wasbigranquicklytoward us.
Spacing is very important in this lesson.
try including a space or two inside of your quotation marks.