Why is javascript in Windows 8 so anonymous and weird?

I have been staring at javascript in Windows 8, and it just seems weird.  That anonymous thing with the empty set of parentheses at the end of the file.   Why is it anonymous, is it a criminal on the look out for the police? 

Here is what the code in one of the templates called “Blank App”, I don’t show the code above it. 

(function () {

//Code removed for brevity sake

};

    app.start();
})(); 

 

Why the empty parentheses?  This makes the function “anonymous”, why is the function “anonymous”?  Because it has no name!  It’s true.  This also means that we are able to do some cool things with the function.  For instance we are able to control controls.  Really, I didn’t just repeat the word control twice, one was the verb control and the other was the noun for objects that the user or system can interact with.  Sometimes we need to know the exact order of when controls are used.

This can be done using anonymous functions.  More in later blogs.