$.action = { do : function() { return 'im doing'; } }; function do() { return 'im doing'; } var action= function() { var do = function() { return 'im doing'; } return { init : function () { do(); } } }(); Calls :
$.actions.do(); do(); action.init(); Hola Amigos,
I am newbee..
There are a lot of usage of functions. But what is the difference between them ? What should i use ?
When i use first one, when i use second, when i use third ?
Thanks for advice...
$namespace.