Skip to content

Instantly share code, notes, and snippets.

@mutoo
Created May 29, 2013 12:08
Show Gist options
  • Select an option

  • Save mutoo/5669815 to your computer and use it in GitHub Desktop.

Select an option

Save mutoo/5669815 to your computer and use it in GitHub Desktop.
function printDigit(n) {
document.write(n);
}
function printOut(n) {
if (n >= 10)
printOut(parseInt(n / 10));
printDigit(n % 10);
}
printOut(10086);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment