What does the following () do? It seems prints out the content inside ().
(function() {
console.log("test");
});
This is how ExtJS 4 defines the version:
(function() {
// Current core version
var version = '4.1.1', Version;
Ext.Version = Version = Ext.extend(Object, {
...
});
It does nothing. It’s a function expression surrounded in parenthesis. Without them, you will get an error.