Tell us what’s happening:
So, the solution seemed to be something like: ```
- result**+=** “My “+myAdjective+” “+myNoun+” “+myVerb+” very “+myAdverb+”.”;
However, from what had been taught I would have understood something like the following to be correct.
- result**=** “My “+myAdjective+” “+myNoun+” “+myVerb+” very “+myAdverb+”.”;
What am I missing, and why is it a += and not a =
Your code so far
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
// Your code below this line
var result = "";
result+= "My "+myAdjective+" n "+myNoun+" "+myVerb+" very "+myAdverb+".";
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("cat", "big", "ran", "quickly");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
.
Link to the challenge:
learn.freecodecamp. org/javascript-algorithms-and-data-structures/basic-javascript/word-blanks