Skip to content

Instantly share code, notes, and snippets.

@tjbarber
Last active December 18, 2015 15:49
Show Gist options
  • Save tjbarber/5807280 to your computer and use it in GitHub Desktop.
Save tjbarber/5807280 to your computer and use it in GitHub Desktop.
simple multiplication table in js
for (var i = 1, buffer = "\n"; i <= 9; i++) {
for (var h = 1; h <= 9; h++) {
buffer += (i * h) + " ";
}
buffer += "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment