Hacker News new | ask | show | jobs
by ficklepickle 2072 days ago
I'm also a big fan of hacking away in the browser console. Can't you use the `let foo = class {}` syntax for iterating on classes?
1 comments

If you are the one writing entirely new code then you can choose to do that. But if you must build upon the work of a different programmer who is not you and that programmer chose `class Foo{}` instead of `Foo=class{}` then the codebase is now rigid and inflexible for purposes of prototyping and experimentation. You are going to have to save the JavaScript to a disk file and edit it there to get rid of the non-redefinable `class Foo{}` or `const numColumns=80`.