r/javascript • • Feb 20 '17

Learn JavaScript With Interactive Challenges: Earn XP, Unlock Achievements & Climb The Leaderboard

https://edabit.com/explore
125 Upvotes

17 comments sorted by

13

u/memystic Feb 20 '17

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:

  • C

  • C#

  • C++

  • Elixir

  • F#

  • Haskell

  • Java

  • JavaScript

  • Objective-C

  • OCAML

  • Php

  • Python

  • Ruby

  • Rust

  • Swift

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! :)

1

u/IgorKlopov Feb 21 '17

Can i help you with translation? I would be happy to see such cool thing in my native language!

4

u/fonster_mox Feb 20 '17

Trying to confirm my email whitescreens so I can't get anywhere...

4

u/memystic Feb 20 '17

I think it's because the server is under heavy load. Try clicking the link again? :/

8

u/kdesign Feb 20 '17

Nice work! Code Wars also does exactly that, but it's never a bad thing to have options :)

8

u/Method_X Feb 20 '17

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!

1

u/DaveSims Feb 20 '17

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.

1

u/memystic Feb 20 '17

Are you not using console.log()?

2

u/DaveSims Feb 20 '17

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.

2

u/memystic Feb 20 '17

2

u/DaveSims Feb 20 '17

Ahh interesting. Try putting the log statement inside of the function.

3

u/memystic Feb 20 '17

http://i.imgur.com/m0W7km1.gifv

You were probably not calling the function.

3

u/DaveSims Feb 20 '17

Oh yeah, definitely was not. I assumed that's what the "Run" button was actually doing.

2

u/KonWayvoz Feb 20 '17

Dude, this is pretty awesome. I've just started learning this stuff myself and am excited to use this is a tool to improve.

1

u/villiger2 Feb 21 '17

Would be nice to run without logging in. Having to register to try out is kinda annoying xD

0

u/[deleted] Feb 23 '17

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