Skip to content

Commit

Permalink
DOM object
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammeddJaveed authored Oct 3, 2024
1 parent 9d6831c commit 12008ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion euler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ function sum(a,b,n)

function GetValues()
{
const Introduction = document.getElementById("Intro").innerHTML = "This is a page to calculate the sum of multiples of certain range"
num1 = document.getElementById("num1").value;
num2 = document.getElementById("num2").value;
limit = document.getElementById("limit").value;
sum(num1,num2,limit);
sum(Introduction,num1,num2,limit);

}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<script src="euler.js"></script>

</head>
<p id ="Intro"></p>
<body>
<label for="num1">Enter First Number</label>&nbsp;
<input type="number" id="num1" for="num1"><br><br>
Expand Down

0 comments on commit 12008ee

Please sign in to comment.