I've been struggling with Javascript objects.
What does (foo) in function(args){ ... }(foo) mean?
You are declaring a function then right after that you call it. you could do it in 2 steps :
function f(args){}
f(foo);
Single step and anonymous :
(function(args){})(foo);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With