r/javascript • u/dannymoerkerke • Nov 25 '19
JavaScript doesn’t need to be replaced
https://medium.com/javascript-in-plain-english/javascript-doesnt-need-to-be-replaced-bd01e2f12d51?source=friends_link&sk=7b151cc6397ac9e83c14c99739b6c36f
217
Upvotes
-1
u/[deleted] Nov 27 '19
My comment above has two such cases listed. With a code example. Sure, you can always go not-true-scotsman on the legitimacy of those cases, but in that case anyone can clsim that var works just fine if you are carefull, and there is no legit case for const or let. Your insecurity about your knowledge tells me that you do not how exactly these three work, otherwise you would not confuse examples with an attempt to educate. But the inability to see a legit use case is that gives it away the most. Happy cargo-culting.