20. April 2010 09:44
Thinking it would be cool to put this on a T-Shirt, with the jsninja.org logo on the front, and the following code snippet on the back.
var a = ["lawn","off","get","my"];
var o = (function(){
var u = function(){
var t = this;
var s = arguments;
return [t[s[0]],t[s[1]],t[s[2]],t[s[3]]];
};
var b = Array.prototype.slice.call(arguments);
var a = b.shift();
return u.apply(a,b).join().replace(/\,/g,' ');
}(a,2,1,3,0));
alert(o[0].toUpperCase() + o.substr(1) + '!');