Programming

JavaScript code to display Multiplication table

Through JavaScript you can easily write the html code in html document using document.write(). Using document.write() and for loop it is easy to print the table of user input number.

First of all “prompt” box will appear and then this value will be parse to integer and the multiplication table is displayed.