You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ===== Question 4: Write a JavaScript program to find the largest number among three given numbers. If all three numbers are equal, display "All three numbers are same". =====
let num1 = +prompt("write your 1st number");
let num2 = +prompt("write your 2nd number");
let num3 = +prompt("write your 3rd number");
if (num1 === num2 && num2 === num3) {
console.log(num1, num2, num3, "All three numbers are same");