I am still trying to fully grasp Javascript. I use it enough in web apps to understand it but not at a deep level. The first line of Google Analytics ( and any analytics script it seems ) creates an array IF one does not exist. I don't understand how that works, how would it know if it exists. My research keeps turning up the global queue but I cannot fund enough info on it. Here is the line at the beginning of both FB and GA javascript include snippet:
var _fbq = window._fbq || (window._fbq = []);
var _gaq = _gaq || [];
I take that eo be var X = the existing array for this name if it exists OR create a new empty array. How does is know if that array exists? To me, again, I would think it will always equal the empty array?