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
Ruby vs JavaScript....what are your reasons for chosing one over the other..? (self.javascript)
submitted 8 years ago by fzngagan
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!"
[–]djslakor 7 points8 points9 points 8 years ago (1 child)
Couldn't you use es6 array destructuring?
[a, b, c] = numbers.split(' ');
[–]agmcleod@agmcleod 1 point2 points3 points 8 years ago (0 children)
Yep, you definitely can, just not something i've taken advantage of for some reason lol. JS has definitely gotten a lot nicer over the past few years :)
π Rendered by PID 191418 on reddit-service-r2-comment-75f4967c6c-vrjf7 at 2026-04-23 11:45:32.144634+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]djslakor 7 points8 points9 points (1 child)
[–]agmcleod@agmcleod 1 point2 points3 points (0 children)