diff --git a/js/test.js b/js/test.js new file mode 100644 index 0000000..9f74e9c --- /dev/null +++ b/js/test.js @@ -0,0 +1,25 @@ +var rows = prompt("How many rows for your multiplication table?"); + var cols = prompt("How many columns for your multiplication table?"); + if(rows == "" || rows == null) + rows = 10; + if(cols== "" || cols== null) + cols = 10; + createTable(rows, cols); + function createTable(rows, cols) + { + var j=1; + var output = "
| " + i*j + " | "; + j = j+1; + } + output = output + "