RosettaCodeData/Task/Count-in-octal/JavaScript/count-in-octal.js
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

3 lines
169 B
JavaScript

for (var n = 0; n < 1e14; n++) { // arbitrary limit that's not too big
document.writeln(n.toString(8)); // not sure what's the best way to output it in JavaScript
}