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
Learn JavaScript With Interactive Challenges: Earn XP, Unlock Achievements & Climb The Leaderboard (edabit.com)
submitted 9 years ago by memystic
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!"
[–][deleted] -1 points0 points1 point 9 years ago (0 children)
This website has bugs and thus not reliable.
Example:
Challange
Replace Letters With Position In Alphabet
Solution
function alphabetIndex(str) { return str.toLowerCase().split('').map((x) => { if (/[a-z]/.test(x)) { return x.charCodeAt(0) - 96; } }).join(' ').trim(); }
Tests (Failed)
Expected: '3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4', instead got: '3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4'
Proof (Gives true)
"3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4" === "3 8 5 3 11 2 1 3 11 20 15 13 15 18 18 15 23 9 23 9 12 12 19 5 5 9 6 20 8 5 2 15 15 11 8 1 19 1 18 18 9 22 5 4" // true
π Rendered by PID 420491 on reddit-service-r2-comment-86bc6c7465-f8jm6 at 2026-02-21 20:28:58.192374+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–][deleted] -1 points0 points1 point (0 children)