You are reading a single comment by @Greenbank and its replies. Click here to read the full conversation.
  • Don't have time to go through your code (and I've never really done .js) but if you post your input in a gist and the individual numbers each line produces I can see what mine does differently and give you a hint.

    (You obviously don't just want to be told what the answer should be as there's no fun in that.)

About

Avatar for Greenbank @Greenbank started