Terse and you don’t learn anything. You should build levels and offer explanations to YOUR code.
PracticeJS – Coding exercises in a mobile friendly web app
11–20 of 22 posts
Re: PracticeJS – Coding exercises in a mobile friendly web app
#12Re: PracticeJS – Coding exercises in a mobile friendly web app
#13Not sure what the test cases are for the Fibonacci sequence (just happened to pick that one first), but it gives an error for my code, and I'm not able to figure out why. (please ignore my bad variable names) function(index) { var fib = [0,1]; for(var i=2; i
Your function will return 2 for index = 4, whereas it's expecting 3.
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.
Re: PracticeJS – Coding exercises in a mobile friendly web app
#14I'm not convinced coding on a phone will ever be a thing. I've tried a few challenges on my phone while interviewing and it was just a clunky and slow experience
Re: PracticeJS – Coding exercises in a mobile friendly web app
#15I'm not convinced coding on a phone will ever be a thing. I've tried a few challenges on my phone while interviewing and it was just a clunky and slow experience
I don't think coding an entire app ever will be. But mini training exercises? Maybe.
Re: PracticeJS – Coding exercises in a mobile friendly web app
#16I'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.
Re: PracticeJS – Coding exercises in a mobile friendly web app
#17Earlier quoted context omitted.
Your function will return 2 for index = 4, whereas it's expecting 3.
Then are the instructions not clear enough, or am I just missing something.... 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.
Re: PracticeJS – Coding exercises in a mobile friendly web app
#18Re: PracticeJS – Coding exercises in a mobile friendly web app
#19Codewars is definitely better than this.
Re: PracticeJS – Coding exercises in a mobile friendly web app
#202) getting errors when trying to use single or double quotes which makes things difficult:
>SyntaxError: Invalid character '\u201c
Otherwise, nice work.