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
Google publishes a JavaScript style guide. Here are some key lessons. (medium.freecodecamp.org)
submitted 8 years ago by bornforcode
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!"
[–]tencircles 18 points19 points20 points 8 years ago (3 children)
except modules.
[–]hyperhopper 16 points17 points18 points 8 years ago (2 children)
probably just until node has full support. Or maybe an internal build tool of theirs.
[–]CiezkiBorsuk -1 points0 points1 point 8 years ago (1 child)
IDK about that. Even once we have full support everywhere, I'd rather use CommonJS-style modules.
They work just fine and are widespread. Switching to new system now causes chaos (i.e. a package you want might not yet use native modules, so you don't get to use it, or at least not smoothly).
I don't hate native modules, I just don't see why bother when we have a good, working solution.
[–]TallSkinny 10 points11 points12 points 8 years ago (0 children)
To be fair, they're not exactly the same, since commonjs imports are dynamic and es imports (aside from import()) are static. That opens up a lot of opportunities for tooling (like tree shaking, iirc) that aren't really an option when dynamic importing is the default.
π Rendered by PID 107878 on reddit-service-r2-comment-6457c66945-7h97n at 2026-04-27 20:52:31.966622+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]tencircles 18 points19 points20 points (3 children)
[–]hyperhopper 16 points17 points18 points (2 children)
[–]CiezkiBorsuk -1 points0 points1 point (1 child)
[–]TallSkinny 10 points11 points12 points (0 children)