Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
I am making a 12 x 12 multiplication table
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>
Expert Solution
Need this Answer?
This solution is not in the archive yet. Hire an expert to solve it for you.





