jquery - creating an javascript object at global level -


i trying create object below

var x = function x() {};

does create object @ window level/global level.is way of using ?

if written in global name space.. meaning in loaded script directly or in script tag global.

but if made inside, example, dom ready event or onlad event handlers wont global.

using window.variable makes global if you're inside block.


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -