Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Where do you place global variables? Re: Where do you place global variables?

#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).