Write a JavaScript that accepts a number from the user using the “prompt” function
- by A sw A
Write a JavaScript that accepts a number from the user using the “prompt” function. Then it draws a table in the HTML document that has the user specified number of rows and columns.
In each table data, it displays the result of the math operation (row raised to the power of column). For example, if the user enters the number 3, the JavaScript should draw the following table:
1 1 1
2 4 8
3 9 27