Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var _ = [];
var letters = "abcdefghijklmnopqrstuvwxyz".split('');
letters.forEach(function(letter) {
function f() {
var out = _.join('');
_.length = 0;
return out;
}
f.toString = function() {
return _.push(letter), letter;
};
window[letter] = f;
});
letters.forEach(function(letter) {
letters.forEach(function(_letter) {
window[letter][_letter] = window[_letter];
});
_[letter] = window[letter];
});
var output =
_
[j]
[a]
[v]
[a]
[s]
[c]
[r]
[i]
[p]
[t]
() + ' ' + _[i][s]() + ' ' +
_
[c]
[r]
[a]
[z]
[y]
();
alert(output);
@agentcooper
Copy link
Author

agentcooper commented Jul 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment