Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / I am making a 12 x 12 multiplication table

I am making a 12 x 12 multiplication table

Computer Science

I am making a 12 x 12 multiplication table. When I run the function, it replies NaN, NaN, infinitely. I can't tell what I've done wrong. Can you please help me? My code is below. Thanks.

 

<!DOCTYPE HTML>

<html lang="en-us">

   <head>

           <meta charset="utf-8">

           <meta name = "author" content = "Jeannine Haslett">

           <title>12 by 12 Multiplication Table</title>

           <style>

               body {

                   width: 80%;

                   margin-left: 10%;

                   text-align: center;

               }

            </style>

 

           <script>

                   /*Assignment

 

                       **Defining Table**

                       input      none-automatically generated

                       processing creates and calculates multiplication table

                       output     12 by 12 table

                       */

 

                       function generateTable() {

                           var tableString = "<table>";

                               for (row = 1; row <= 12; row++) {

                               tableString += "<tr>";

                                   for (column = 1; column <= 12; column++) {

                                       tableString += "<td>" * column * row + "</td>";

                                   }

                                   tableString += "</tr>";

                               }

                                   tableString += "</table>";

                   //output

                       document.getElementById("outputDiv").innerHTML = tableString;

                       }

           </script>

 

   </head>

               <body>

                   <h1>Multiplication Table</h1>  

                   <button onclick="generateTable()">Run Function</button>

                   <div id="outputDiv"></div>

 

               </body>      

</html>

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE