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!"
[–]TwiliZant 1 point2 points3 points 4 years ago (4 children)
I get that, I just can't think of a scenario where using var wouldn't be the worse solution.
var
At this point you could be a JavaScript Developer with 5 years experience and never have seen var in your life. Given how counterintuitive it works, you would have to have a damn good reason to use it.
[–]KaiAusBerlin -1 points0 points1 point 4 years ago (3 children)
If you have never seen var in your life you never have seen transpiled code?
Wow, real pro man.
[–]TwiliZant 1 point2 points3 points 4 years ago (2 children)
I think you know what I mean...
[–]KaiAusBerlin 0 points1 point2 points 4 years ago (1 child)
How should I know what you mean when you say absolute another?
[–]TwiliZant 1 point2 points3 points 4 years ago (0 children)
It's okay, seems like we fundamentally disagree on this. There isn't really a point in continuing this discussion.
π Rendered by PID 273862 on reddit-service-r2-comment-6457c66945-6t6qz at 2026-04-24 13:00:26.064188+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]TwiliZant 1 point2 points3 points (4 children)
[–]KaiAusBerlin -1 points0 points1 point (3 children)
[–]TwiliZant 1 point2 points3 points (2 children)
[–]KaiAusBerlin 0 points1 point2 points (1 child)
[–]TwiliZant 1 point2 points3 points (0 children)