From e11e75186bcdb0fa3f8b30225f2248ec7f1c6de7 Mon Sep 17 00:00:00 2001 From: Harsh Tiwari <47390133+mrgokuji@users.noreply.github.com> Date: Mon, 5 Oct 2020 13:35:36 +0530 Subject: [PATCH] Create test.js --- js/test.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 js/test.js 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 + "