1// program to find the largest among three numbers
2
3// take input from the user
4const num1 = parseFloat(prompt("Enter first number: "));
5const num2 = parseFloat(prompt("Enter second number: "));
6const num3 = parseFloat(prompt("Enter third number: "));
7
8const largest = Math.max(num1, num2, num3);
9
10// display the result
11console.log("The largest number is " + largest);