Const in JavaScript: when to use it and is it necessary?
There are two aspects to your questions: what are the technical aspects of using const instead of var and what are the human-related aspects of doing so. The technical difference is significant. In compiled languages, a constant will be replaced at compile-time and its use will allow for other optimizations like dead code removal to … Read more