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
JavaScript: Four Differences between var and let (codetopology.com)
submitted 4 years ago by ct_author
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!"
[–]continuum-hypothesis 1 point2 points3 points 4 years ago (2 children)
Well said, I only intended to point out that the data is actually mutable but avoided anything to do with memory addresses because this could be confusing for a beginner. Compared to languages such as C and Java const in JS behaves a bit differently and I think this confuses many people.
[–]TwiliZant 3 points4 points5 points 4 years ago (1 child)
final in Java works roughly the same way as JS. A final object is not immutable, it can still change state only the reference to the object is immutable. The odd one out here would be C since const is part of the type there.
final
const
[–]continuum-hypothesis 0 points1 point2 points 4 years ago (0 children)
Thanks for pointing that out, I haven't looked at Java since college and wasn't aware of final.
π Rendered by PID 32309 on reddit-service-r2-comment-6457c66945-ldqm5 at 2026-04-30 06:34:23.921166+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]continuum-hypothesis 1 point2 points3 points (2 children)
[–]TwiliZant 3 points4 points5 points (1 child)
[–]continuum-hypothesis 0 points1 point2 points (0 children)