Hello, I'm learn js and every time I see this convention:
Javascript anonymous function
0
Hello,
I'm learn js and every time I see this convention:
For what I need use anonymouse function?
I mean, I can do something like that:
Without anonymouse function, and in tutorials I see its used inside anonymous function.
I'm learn js and every time I see this convention:
Code:
(function(){
// do something
})(); I mean, I can do something like that:
Code:
document.getElementById('someid').innerHTML = 123; Next Topics on Trending Feed
-
0