JavaScript Multiplication Table is a multiplication table for any number.
Using JavaScript we program and generate a multiplication table of any number.
Java multiplication table generation using for loop is developed as below
- Create a text box to get a number from the user.
- Create a button to submit value
- on the button click to call the multiplicationTable() function.
- the function will get the value of the text box
- loop to generate a multiplication table.
- print the data on an HTML page.
Example Multiplication table javascript user input
Generate Table

Multiplication table in javascript Example: Multiplication table in Range
Here user will enter the range to generate a multiplication table if the user enters 1 and 10 then a multiplication table from 1 to 10 is generated.
Generate Tables

Create an html page with the sole purpose to show multiplication tables of 2 to 10 (row-wise) created by JavaScript. initially, the page is blank. with help of set interval function print a row every 5 seconds in different colors and increasing font size.
Bootstrap Example Multiplication Tables
Read More
- Get multiple checkbox value in javascript
- Add active class onclick
- isPrime() Javascript : Prime number program
- Form Handling and Validation
- Try Catch and Finally in JavaScript
- Math Object in JavaScript