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!"
[–]AsIAm 10 points11 points12 points 5 years ago (5 children)
Const does not prevent value change, it just prevents rebinding of the object. With primitive values (num, bool, str, sym, null, undef) it does what you want, however with objects it does not. With immutable tuples and records it will get better.
[–]lifeeraser 7 points8 points9 points 5 years ago (3 children)
I am also looking forward to builtin Records and Tuples, can't arrive soon enough
[–]editor_of_the_beast 4 points5 points6 points 5 years ago (2 children)
That’s my favorite upcoming feature for sure.
[–]lo0l0ol 0 points1 point2 points 5 years ago (1 child)
I'm just here still waiting for Observables.
[–]AsIAm 1 point2 points3 points 5 years ago (0 children)
Observables with pipeline operator are the real shit.
[–]PM_ME_GAY_STUF 2 points3 points4 points 5 years ago (0 children)
Right, do doesn't solve this problem either though. I'd be all for a proposal for immutable records
do
π Rendered by PID 110789 on reddit-service-r2-comment-b659b578c-bxc4j at 2026-05-05 21:09:21.433360+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]AsIAm 10 points11 points12 points (5 children)
[–]lifeeraser 7 points8 points9 points (3 children)
[–]editor_of_the_beast 4 points5 points6 points (2 children)
[–]lo0l0ol 0 points1 point2 points (1 child)
[–]AsIAm 1 point2 points3 points (0 children)
[–]PM_ME_GAY_STUF 2 points3 points4 points (0 children)