javascript - What does it mean when there is an unnamed object with function inside? -


reading javascript files , couldn't understand piece of code. object function in it. how understand it?

{       // static methods     function getcurrent() {         return obj[k].instance     } } 

this not object. block statement used grouping statements. in case groups static methods.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo