Where did this Word Blank solution come from?

Tell us what’s happening:

Hey guys - so forgive my new(b)ness, but I can’t figure out how we were supposed to come up with this solution since it doesn’t seem like the +variable+ function (with two addition operators on either side of the variable) was covered in the curriculum.

I may be wrong about that, but I reviewed all the concatenation sections and this feels like something altogether new that we’re just supposed to know without being exposed to (?)

Your code so far


function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  // Your code below this line
  var result = "";
    result+= "My "+myAdjective+" "+myNoun+" "+myVerb+" very "+myAdverb+".";
  // 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 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.145 Safari/537.36 Vivaldi/2.6.1566.49.

Link to the challenge:


Here is that lesson: https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/constructing-strings-with-variables

Oh, I finally get it…the empty strings contain the words from the wordBlank below. Lord, JS is not my thing…but no surprise there because I’m terrible at math.