News for hackers. Stuff that matters.
Re:Using const/let instead of var can make JavaScript code r... by annoyingconst92 on Wednesday October 21, 2020 @01:51PM (#24850289)
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`.

There are no comments on this comment yet.