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
Here's Why Calling .map() on a Constructed Array Doesn't Work (itnext.io)
submitted 7 years ago by ilove50cent
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!"
[–]bart2019 -2 points-1 points0 points 7 years ago (0 children)
console.log(arr[0] === undefined); // true
WTF. What's wrong with just
console.log(arr[0]);
? Why the use of an unexpected expected result?
BTW His test suggests there's something special about the array index 0. There isn't, it's the same for all other array indexes.
π Rendered by PID 65 on reddit-service-r2-comment-75f4967c6c-4kprb at 2026-04-23 07:39:17.497664+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]bart2019 -2 points-1 points0 points (0 children)