TABLE GENERATOR USING JAVASCRIPT
TABLE GENERATOR USING JAVASCRIPT <script type="text/javascript"> </script> <script type="text/javascript"> // fACTOR 12 = 1,2,3,4,6, AND 12 function check() { var number= document.getElementById('n1').value; var number2= document.getElementById('n2').value; var str2=""; for (var j=parseInt(number); j<= parseInt(number2); j++) { var str=""; for (var i=1; i<=10; i++) { str = str + `${j*i} `; } str2= str2 + '\n'+ str; console.log(str2); } document.getElementById('tav').innerText=`${str2}`; } </script> <br> <input type="number" name="" id="n1"> <input type="number" name="" id="n2"> <br> <button onclick="check()">GENERATE</button> <h3 id="tav"> </h3>