From 36f25f05ba6426e600fdc5b7646fd91a760774df Mon Sep 17 00:00:00 2001 From: avinashluhana Date: Fri, 10 Jun 2022 16:14:01 +0500 Subject: [PATCH] added a simple js program --- public/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/main.js b/public/js/main.js index e69de29..ffd1891 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -0,0 +1,4 @@ +const number = prompt("Enter the number: "); + +const result = Math.sqrt(number); +console.log(`The square root of ${number} is ${result}`);