instant run functions

by Andy Bulka

JavaScript

console.log('hello');

(function () {
    console.log('there');
}());

(x = 100)
y = 200;

(function ($, undefined) {
    console.log('hi');
}());

(function (a, b) {
    console.log('welcome', a, b);
}(1,2));

console.log(x, y);

(function () {
    console.log('am I running?');
})();