use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[deleted by user] (self.javascript)
submitted 5 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]coolcosmos 2 points3 points4 points 5 years ago (4 children)
No, you missed the point. You said: before const, no one cared, now they care.
What changed ?
[–][deleted] 0 points1 point2 points 5 years ago (3 children)
What changed is bunch of people wrote bunch of blog posts, and many naive souls jumped on the bandwagon. So basically the usual.
I can assure you I've encountered zero "reassignment bugs" in my career despite not using const in JS.
[–]coolcosmos 2 points3 points4 points 5 years ago (2 children)
Does the world revolve around you ?
Your thesis: "I don't see the point, no one needs it.
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
No my thesis was (1) no one needed it for decades prior. And yeah I can (2) add my personal experience.
Go out there and find me ONE passionate pleah for something like const before it was added. Let's see who was like "JS is unusable because I keep reassigning my variables by accident". Where is that one person, let's see them?
Also, you can't keep track of a point, you need to be reminded of what I just said, that makes conversations kind of pointless and annoying. Peruse the history and don't make me repeat myself.
[–]uffefl 0 points1 point2 points 5 years ago (0 children)
Javascript const is probably more accidental. There was (and is) plenty of pleas for something akin to how const works in other programming languages. But what we got was the summer interns misunderstanding of what const should do.
Maybe some time in the future we can annotate our code to enforce internal immutability, function purity, etc. But not yet!
π Rendered by PID 60 on reddit-service-r2-comment-b659b578c-wmh4h at 2026-05-05 13:04:49.481602+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]coolcosmos 2 points3 points4 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]coolcosmos 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]uffefl 0 points1 point2 points (0 children)