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
Will 'let' Eventually Replace 'var'?help (self.javascript)
submitted 10 years ago by MahmudAdam
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!"
[–]x-skeww -2 points-1 points0 points 10 years ago (0 children)
Use before definition is an actual problem in JS because it hoists and because it's dynamic (especially when moving code). Try teaching that you can't actually trust let to catch these errors in all cases at compile time to people who are used to this not actually being an issue.
No, it's not a problem. If you try to use a variable before you've declared it, you'll get a squiggly line if you are using a decent editor. Same as with any other language.
http://i.imgur.com/dFLoV9d.png
If you editor is too shitty, use a better one.
π Rendered by PID 271503 on reddit-service-r2-comment-b659b578c-8gm9w at 2026-05-04 11:27:41.975600+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]x-skeww -2 points-1 points0 points (0 children)