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}`);