Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript Interview Question. Parent comment
var say = (function() {
var savedArgs = []; return (function recurse () { if (arguments.length) { for (var i=0, arg; arg=arguments[i]; i++) { savedArgs.push(arg); } return recurse; } else { alert(savedArgs.join(' ')); savedArgs = []; } });
// e.g. say('Hello')('World')('!!')();
// --> alerts "Hello World !!"
There are no comments on this comment yet.
var say = (function() {
})();// e.g. say('Hello')('World')('!!')();
// --> alerts "Hello World !!"