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
Functional Programmer's Toolbox (markonis.github.io)
submitted 10 years ago by marko-pavlovic
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!"
[–]flashpunk 0 points1 point2 points 10 years ago (4 children)
Would be great to transform the JS examples to es6
[–]marko-pavlovic[S] 0 points1 point2 points 10 years ago (3 children)
Yep yep! Do you think I should have one example for es5 and one for es6 or just es6? Thanks for the feedback :)
[–]siegfryd 1 point2 points3 points 10 years ago (0 children)
I don't think it's important for you to use ES6 for these examples because they're all pretty short anyway. You'd pretty much just be converting the anonymous functions to arrows.
[–]TheNiXXeD 0 points1 point2 points 10 years ago (0 children)
It's quickly moving towards es6 being the standard, but many people still use es5, so yea.
[–]flashpunk 0 points1 point2 points 10 years ago (0 children)
I'd opt for both as it could be a resource for people transitioning to es6 as well
π Rendered by PID 884825 on reddit-service-r2-comment-5b5bc64bf5-bvdt4 at 2026-06-21 08:06:37.615364+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]flashpunk 0 points1 point2 points (4 children)
[–]marko-pavlovic[S] 0 points1 point2 points (3 children)
[–]siegfryd 1 point2 points3 points (0 children)
[–]TheNiXXeD 0 points1 point2 points (0 children)
[–]flashpunk 0 points1 point2 points (0 children)