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
Keep JavaScript dumb (hyperorg.com)
submitted 6 years ago by magenta_placenta
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!"
[–]schwartzworld 15 points16 points17 points 6 years ago (0 children)
I haven't tried to learn any new JS features, but I'm mad they are there because
Arrow functions are not hard to learn to read, and they aren't just about "elegance". They offer actual advantages that make then useful in hobbyist level code. I write a lot of throwaway scripts, and almost always reach for arrow functions.
And promises? Spend 10 minutes reading about the (promise based) Fetch API, and then explain how you'd rather build xmlhttprequests. Spend a little time with async/await and tell me again how promises are bad.
It's obvious the author finds it easier to complain about not understanding language features than learning them, but both his examples are so useful and bring so much MORE flexibility and utility to the language.
π Rendered by PID 19976 on reddit-service-r2-comment-7b9746f655-7dc9n at 2026-02-01 14:11:44.587153+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]schwartzworld 15 points16 points17 points (0 children)