Tell us what’s happening:
So I am trying to ‘parse’ the new variables into the existing, given text, is that right? I tried a few different things but I don’t think I am on the right track for some reason.
Your code so far
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line
var result = "dog, big, ran, quickly";
var sentence = "It was really" + myAdjective + "and we" + myVerb + "ourselves" + myAdverb + ".";
// Your code above this line
return result;
}
// Change the words here to test your function
// function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// var result = ("cat", "little", "hit", "slowly");
// var sentence = "It was really" + myAdjective + "and we" + myVerb + "ourselves" + myAdverb + ".";
// return result;
// }
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/word-blanks