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
var a = function() { return 1; } alert(a()) // 1 a = function() { return 2; } alert(a()) // 2
technically, you're losing one function definition and replacing it with another.