4 ms·
I do want to point out that Ruby isn't the only language that allows a function to redefine itself. Try this in your firebug console: var foo = function() {
by warfangle 16y ago
I do want to point out that Ruby isn't the only language that allows a function to redefine itself. Try this in your firebug console:
var foo = function() {
console.log('foo');
foo = function() {
console.log('bar');
};
};
foo();
foo();