Home › Forums › JavaScript › Where do you place global variables? › Re: Where do you place global variables?
June 12, 2013 at 1:16 pm
#138476
TheDoc
Member
I put all global variables at the top of the JS file, before the document ready (unless, of course, they require the document to be ready).