• Got a Tipila, google, windows live or facebook account ?

Defining the function

var $var = (function(){return 1 + 2;})();

Accessing the variable

window.alert($var); // 3

Tipila is a site for programmers to save interesting things found on the web, as Tips.

No more wasting time by re-googling for things you've found but forgotten.

It's totally free...
Get started now

Login to Tipila