Let\'s say I have var a = function() { return 1; }. Is it possible to alter a so that a() returns 2? Perhaps by editing a
var a = function() { return 1; }
a
a()
2
Absolutely. Just assign to it a new function.