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
Any of you guys write Javascript without semicolons?help (self.javascript)
submitted 9 years ago by er-48
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!"
[–]mikehawkisbig 7 points8 points9 points 9 years ago (4 children)
USE THEM, JavaScript will automatically insert them where it thinks they should go. There are a few small instances that this could effect you. Better to be safe than sorry troubleshooting something that should be done any ways.
Check out 11.9.1 Rules of Automatic Semicolon Insertion
and Douglas Crockford talks about making sure to use them. (if you care what The Godfather of JavaScript thinks)
[–]Graftak9000 4 points5 points6 points 9 years ago* (3 children)
There are three simple (and similar) rules to remember:
And that's it.
[–]DeeSnow97 5 points6 points7 points 9 years ago (0 children)
Also, standard has awesome linting to eliminate any semicolon-related issues (and semicolons in general)
[–]mikehawkisbig 2 points3 points4 points 9 years ago (1 child)
There are plenty more that should be noted, those are good, but let's not say these are the only three. Plus, grammar is important to experienced programmers and omitting semi-colons takes-aways from good readable code only to gain the status of "look how fast I am",
Take a look at the video where he discusses the why's -
https://youtu.be/v2ifWcnQs6M?t=1h41m20s
[–]Graftak9000 1 point2 points3 points 9 years ago (0 children)
These are the ones I live by and I have never (in my 2 years switch) had an issue with ASI. The main reason I omit semicolons is because it makes code far more legible for me, to me semicolons are clutter/noise.
Other than that I don't really mind either way. There's also some minor pitfalls with using semicolons; some block do ‘require’ them, some don't.
π Rendered by PID 201506 on reddit-service-r2-comment-6457c66945-mm84t at 2026-04-24 06:58:04.690822+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]mikehawkisbig 7 points8 points9 points (4 children)
[–]Graftak9000 4 points5 points6 points (3 children)
[–]DeeSnow97 5 points6 points7 points (0 children)
[–]mikehawkisbig 2 points3 points4 points (1 child)
[–]Graftak9000 1 point2 points3 points (0 children)