Ok, so here is the exercise:
Could anyone explain, since I don’t recall it being explained anywhere, how
var output = ""; works? Are the empty quotation marks just placeholders - we use them just to indicate that the result will be a string, or something else? Could anyone elaborate how this works, and in which occasions should we use it?
Also, I don’t understand completely this code:
output += "myGlobal: " + myGlobal;, since this is the same as
output = output + "myGlobal: " + myGlobal; . If that’s true, how
"" + "myGlobal" + 10 === myGlobal: 10 ?