GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — javascript-codegolf/javascript-code/exercise.js at master · CGNonofr/javascript-codegolf Expand file tree/ Copy pathexercise.jsMore file actions 12 lines (12 loc) · 253 Bytes / Copy pathexercise.jsFile metadata and controls12 lines (12 loc) · 253 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 function compute(number) { var result = number; while(result > 9) { var splitted = result.toString().split(''); var sum = 0; for (var i = 0 ; i < splitted.length ; ++i) { sum += parseInt(splitted[i]); } result = sum; } return result; } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |