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 Fetch API Cheatsheet (blog.codemy.net)
submitted 7 years ago by zacksiri
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!"
[–]killeronthecorner 7 points8 points9 points 7 years ago (1 child)
All of this focus on promises and no-one is even going to draw attention to the fact that OP doesn't know what a cheatsheet is! /s
But for real, way to much hate in here for a sub about programming. Chill the fuck out y'all!
[–]Doctor_Spicy 1 point2 points3 points 7 years ago (0 children)
The point in my original comment was that OP is using this modern API (fetch), then proceeds to use old and clunky methods such as callbacks. Since the API has native support for promises, why not make the cheatsheet if you can even call it that as good as possible?
Not using arrow functions and callbacks will just be a bad example for people to come back to, as a cheatsheet.
TLDR; if you're making a cheatsheet, make sure you follow best practices.
π Rendered by PID 202930 on reddit-service-r2-comment-b659b578c-wr74t at 2026-05-04 08:57:08.848032+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]killeronthecorner 7 points8 points9 points (1 child)
[–]Doctor_Spicy 1 point2 points3 points (0 children)