I found this expression on one web site.
var _g = _g || [];
What doest it mean?
I found this expression on one web site.
var _g = _g || [];
What doest it mean?
it simply prevent the _g value to be null or undefined, if the _g on the right side is null or undefined, _g will be assigned to an empty array.
it is like :
if(!_g) {
_g = [];
}