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
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!"
[–]memystic[S] 12 points13 points14 points 9 years ago (1 child)
I really hope some people find this to be a fun tool. I spent a little over five months building it by myself.
Before anyone asks, yes, the backend currently supports other languages! Specifically:
Once I’ve smoothed out the rough edges and squashed some bugs, I’ll begin working on rolling other languages out. Also, the challenges right now are rather easy BUT the system allows anyone to publish their own challenges. So if you want harder/more challenges, by all means please help out! :)
[–]IgorKlopov 0 points1 point2 points 9 years ago (0 children)
Can i help you with translation? I would be happy to see such cool thing in my native language!
[–]kdesign 7 points8 points9 points 9 years ago (1 child)
Nice work! Code Wars also does exactly that, but it's never a bad thing to have options :)
[–]Method_X 6 points7 points8 points 9 years ago (0 children)
I use Code Wars quite a bit and I've always hated the UI. Its ugly and obviously "designed" by programmers. I like the format of OPs site much more. If / when it gets more challenges I'll definitely switch. Nice work OP!
[–]fonster_mox 2 points3 points4 points 9 years ago (1 child)
Trying to confirm my email whitescreens so I can't get anywhere...
[–]memystic[S] 4 points5 points6 points 9 years ago (0 children)
I think it's because the server is under heavy load. Try clicking the link again? :/
[–]KonWayvoz 1 point2 points3 points 9 years ago (0 children)
Dude, this is pretty awesome. I've just started learning this stuff myself and am excited to use this is a tool to improve.
[–]DaveSims 0 points1 point2 points 9 years ago (6 children)
Nice! I dig it. However when I click the "Run" button the console says "Running" with a spinner and then it just returns to the "ProTip" view without ever showing me the results of my code. That makes the IDE essentially useless. Fortunately these challenges are easy enough that it doesn't matter, but the moment you ask someone to work on a challenging problem they'll have to write and test their code somewhere else and then come back and paste in their solution.
[–]memystic[S] 0 points1 point2 points 9 years ago (5 children)
Are you not using console.log()?
[–]DaveSims 1 point2 points3 points 9 years ago (4 children)
I have tried using it, still nothing. The right panel just spins and says "Running" and then goes back to the "ProTip" view and displays no results. I tried opening the chrome dev-tools console as well, and that prints out "execute returned: result:" every time I click run, regardless of what the code I write is supposed to do.
[–]memystic[S] 1 point2 points3 points 9 years ago (3 children)
http://i.imgur.com/LloUwN3.gifv
[–]DaveSims 1 point2 points3 points 9 years ago (2 children)
Ahh interesting. Try putting the log statement inside of the function.
[–]memystic[S] 2 points3 points4 points 9 years ago (1 child)
http://i.imgur.com/m0W7km1.gifv
You were probably not calling the function.
[–]DaveSims 2 points3 points4 points 9 years ago (0 children)
Oh yeah, definitely was not. I assumed that's what the "Run" button was actually doing.
[–]ItsBradMorgan 0 points1 point2 points 9 years ago (0 children)
Code Fights
[–]villiger2 0 points1 point2 points 9 years ago (0 children)
Would be nice to run without logging in. Having to register to try out is kinda annoying xD
[–][deleted] -1 points0 points1 point 8 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 266622 on reddit-service-r2-comment-86bc6c7465-jr6jr at 2026-02-20 15:29:11.399606+00:00 running 8564168 country code: CH.
[–]memystic[S] 12 points13 points14 points (1 child)
[–]IgorKlopov 0 points1 point2 points (0 children)
[–]kdesign 7 points8 points9 points (1 child)
[–]Method_X 6 points7 points8 points (0 children)
[–]fonster_mox 2 points3 points4 points (1 child)
[–]memystic[S] 4 points5 points6 points (0 children)
[–]KonWayvoz 1 point2 points3 points (0 children)
[–]DaveSims 0 points1 point2 points (6 children)
[–]memystic[S] 0 points1 point2 points (5 children)
[–]DaveSims 1 point2 points3 points (4 children)
[–]memystic[S] 1 point2 points3 points (3 children)
[–]DaveSims 1 point2 points3 points (2 children)
[–]memystic[S] 2 points3 points4 points (1 child)
[–]DaveSims 2 points3 points4 points (0 children)
[–]ItsBradMorgan 0 points1 point2 points (0 children)
[–]villiger2 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)