Skip to content

Instantly share code, notes, and snippets.

@salehahmadbabu
Last active July 6, 2018 03:12
Show Gist options
  • Save salehahmadbabu/ffe4eb4541b74ee5566a0c5937d45b45 to your computer and use it in GitHub Desktop.
Save salehahmadbabu/ffe4eb4541b74ee5566a0c5937d45b45 to your computer and use it in GitHub Desktop.
function newFunction() {
for (var i = 1; i <= 50; i++) {
for (var j = 1; j <= 10; j++) {
console.log(i + ' * ' + j + ' = ' + i * j);
}
}
}
newFunction();
function newFunction1() {
var i = 1;
while (i <= 50) {
var j = 1;
while (j <= 10) {
console.log(i + ' * ' + j + ' = ' + i * j);
j++;
}
i++;
}
}
newFunction1();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment