:
- : string, number, boolean, null, undefined, symbol
- - , , , Javascript. , , .
- - , javascript.
function()
- - . ,
new
, new Thing()
. - .
, , JQuery , -. , , - $ = function() {...}
- $
, . , , , $.randomNumber = 4
, JQuery .
So, if you want to do something like this, you will want to define your own global variable and set it as a function - just be aware of what has already been done, i.e. do not use $
or _
or anything else.
source
share