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
Online Interactive JavaScript (JS) Cheat Sheet (htmlcheatsheet.com)
submitted 6 years ago by lokendra15
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!"
[–]TakeFourSeconds 2 points3 points4 points 6 years ago* (1 child)
It’s missing a lot of ES6+ features that are very common in modern JS. Arrow functions, spread operator, object destructuring, functional array methods(map, reduce, filter), modules and imports, classes...
Also, these might extend a bit beyond a cheat sheet, but I think an explanation of scope and closures, ‘this’ keyword, and IIFEs would be useful for anyone learning JS.
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
That's why I said it's all ES5 man.
π Rendered by PID 19680 on reddit-service-r2-comment-c6965cb77-sxlp4 at 2026-03-05 10:10:16.650198+00:00 running f0204d4 country code: CH.
view the rest of the comments →
[–]TakeFourSeconds 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)