RosettaCodeData/Task/Count-in-octal/JavaScript/count-in-octal.js
2023-07-01 13:44:08 -04: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
}