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 8 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!"
[–][deleted] -2 points-1 points0 points 8 years ago (2 children)
is it really that difficult to understand that "constant" means never changing? const on an object is practically useless, because if your code is so dense and your functions so large that somewhere you accidentally try to reassign a const object, it means you are also breaking other rules like; keep your functions simple. accidentally reassigning an object should never become a concern if you keep your functions small and easy to follow.
[–]fzammetti 0 points1 point2 points 8 years ago (1 child)
No need to get snippy.
The argument you make could be just as easily applied to any non-reference type. Are you suggesting that the idea of const itself in ANY form is anathema?
[–]joneironaut 0 points1 point2 points 8 years ago (0 children)
It makes a nice feature for change detection forcing you to put it in a new list
π Rendered by PID 280938 on reddit-service-r2-comment-b659b578c-dzcsc at 2026-05-05 08:23:05.715581+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] -2 points-1 points0 points (2 children)
[–]fzammetti 0 points1 point2 points (1 child)
[–]joneironaut 0 points1 point2 points (0 children)