From 12008ee927d2b2f4fa7830db37f6b1af45bd0f4a Mon Sep 17 00:00:00 2001 From: Mohammed Javeed Date: Thu, 3 Oct 2024 13:03:55 +0100 Subject: [PATCH] DOM object --- euler.js | 3 ++- index.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/euler.js b/euler.js index 06e833c..5351de8 100644 --- a/euler.js +++ b/euler.js @@ -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); } \ No newline at end of file diff --git a/index.html b/index.html index 553c83c..92f1995 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ +