Word Blanks += vs + confusion help

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

There is no reason to use a += in this case.

except it wanted me to use a +=.

That’s not a requirement of the challenge or mentioned anywhere in the challenge.

It would not let me move on until I used a +=, as previously stated.

I’m not sure what your code was, but you CAN pass this challenge without using a +=.