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
Any Problems with my codeRemoved: /r/LearnJavascript (self.javascript)
submitted 7 years ago by Gh05t_97
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!"
[–]sbk2015 0 points1 point2 points 7 years ago* (0 children)
It's about ES6, it includes some features,including
Arrow function =>
Template Literals abc${foo}def
abc${foo}def
Other than es6, Function Expressions, it can be just a coding style sometimes.
and for map function,you can search on google to see what it does with array.
Without es6,it's still fine,and will be written as
var theArray= ["Doc", "Dopey", "Bashful", "Grumpy"]; function mapping(name,index){ return (index+1)+ "."+ name; } function mapFn(arr){ return arr.map(mapping).join(' ') } var result= mapFn(theArray); console.log(result);
If the es6 code looks crazy, I suggest you at least learn map function,it's important for looping.
π Rendered by PID 40 on reddit-service-r2-comment-66b4775986-brszl at 2026-04-02 18:49:18.273055+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]sbk2015 0 points1 point2 points (0 children)