![]() |
what is the meaning of (function(a){...})(window);
Hello,
somewhere i've seen this type of javascript codes: Code:
(function(a){ |
The answer
Hello,
I myself found the answer. these are some ways to write less code. as you know the next line refers to a function: Code:
function x(arg){ /*some codes here ...*/ }Code:
(function x(arg){ /*some codes here ...*/ })Code:
x(3);Code:
(function (a){ /* ... */ })(window); |
| All times are GMT -4. The time now is 11:44 PM. |
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.