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
If you're debugging javascript and want to see how changes to the code affects the page, you can use this Firefox extension to view/alter javascripts:
Execute JS firefox extension: https://addons.mozilla.org/en-US/firefox/addon/1729