JavaScript program to find the largest among three numbers:

python tutorials and learn python

Created with Sketch.

JavaScript program to find the largest among three numbers:

let num1 = 5;
let num2 = 10;
let num3 = 8;
let largest = Math.max(num1, num2, num3);
console.log("The largest number among " + num1 + ", " + num2 + " and " + num3 + " is " + largest);

Leave a Reply

Your email address will not be published. Required fields are marked *