I just want to increase my core javascript knowledge.
Sometimes I see this statement but I don\'t know what it does:
var var1 = var1 || [];
It assigns an empty array to var1, if the boolean representation of it is false (for example it hasn't been initialized).
var1