Live data from Hacker News

PracticeJS – Coding exercises in a mobile friendly web app

practicejs.com

21–22 of 22 posts

Re: PracticeJS – Coding exercises in a mobile friendly web app

#21
post #17

Earlier quoted context omitted.

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.

Index 4 is the fifth element, 3. Index 0 is the first element (a zero). Reread the examples.

Hmm...I see. Thank you for the help!
Post reply on HN