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
Can you not just define it again later on? When you want the change try just redefining it as:
a = function() { return 2; }