Skip to content

Commit

Permalink
Update theme-1.html
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownmeovo authored Nov 20, 2024
1 parent 73e9de8 commit e7c020f
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions theme-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,40 +43,6 @@ <h1>To use app again refresh this page. </h1>
</div>
<footer>Copyright 2024 - MIT License</footer>
</body>
<script>
const tableContainer1 = document.querySelector(".one");
const tableContainer2 = document.querySelector(".two");
const tableContainer3 = document.querySelector(".three");
const tableContainer4 = document.querySelector(".four");
const tableContainer5 = document.querySelector(".five");
const tableContainer6 = document.querySelector(".six");
const tableContainer7 = document.querySelector(".seven");
const tableContainer8 = document.querySelector(".eight");
const tableContainer9 = document.querySelector(".nine");
const tableContainer10 = document.querySelector(".ten");
alert("This app will tell you table of any number till ten .Press OK to continue");
tableOf = +prompt("Enter a number whose table you want.");
tableOne = (tableOf + " x " + "1 = " + tableOf * 1 + " ");
tableTwo = (tableOf + " x " + "2 = " + tableOf * 2 + " ");
tableThree = (tableOf + " x " + "3 = " + tableOf * 3 + " ");
tableFour = (tableOf + " x " + "4 = " + tableOf * 4 + " ");
tableFive = (tableOf + " x " + "5 = " + tableOf * 5 + " ");
tableSix = (tableOf + " x " + "6 = " + tableOf * 6 + " ");
tableSeven = (tableOf + " x " + "7 = " + tableOf * 7 + " ");
tableEight = (tableOf + " x " + "8 = " + tableOf * 8 + " ");
tableNine = (tableOf + " x " + "9 = " + tableOf * 9 + " ");
tableTen = (tableOf + " x " + "10 =" + tableOf * 10 + " ");
tableContainer1.innerText = tableOne;
tableContainer2.innerText = tableTwo;
tableContainer3.innerText = tableThree;
tableContainer4.innerText = tableFour;
tableContainer5.innerText = tableFive;
tableContainer6.innerText = tableSix;
tableContainer7.innerText = tableSeven;
tableContainer8.innerText = tableEight;
tableContainer9.innerText = tableNine;
tableContainer10.innerText = tableTen;
<script src="script.js"></script>

</script>

</html>
</html>

0 comments on commit e7c020f

Please sign in to comment.