PracticeJS – Coding exercises in a mobile friendly web app
practicejs.com
practicejs.com
I've built a PoC (also a Web app, but requires a backend), video demo here:
The neat thing is that all the heavy-lifting of syntax highlighting, autocomplete, etc are done by Vim, so I don't need to port everything to the front-end.
Number of problems, sorted into levels of difficulty / focus areas (this has only one problem that I would consider 'hard')
Help (not just solution) is available to those who want it
Helpful error messages
Syntax highlighting
That said, I really like the interface here. It works well on my phone and looks nice on a desktop, and is straightforward and simple. The only issue is that keyboard auto capitalization/autocorrect gets annoying to deal with on a phone. Hacker's Keyboard (free software Android keyboard) could help with that; it would be nice to have a link to something like that for Android+iOS on the website.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...
function(index) {
var fib = [0,1];
for(var i=2; i<index; i++){
fib[i]=fib[i-2]+fib[i-1];
}
return fib[index-1];
}From the website: "For example, the sequence [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] forms the first ten entries of the Fibonacci sequence." Entering 4 should return 2 in this case, which is correct? I don't get it.
Reread the examples.
2) getting errors when trying to use single or double quotes which makes things difficult:
>SyntaxError: Invalid character '\u201c
Otherwise, nice work.
Codewars is definitely better than this.
Can you add syntax highlighting to this?