JavaScript Program to Find Greatest number among three number | JavaScript Tutorial in Hindi
Welcome all, We will see JavaScript Program to Find Greatest Number among three number with source. JavaScript to find Greatest number.
To find which number is largest is very simple, all you have to do is apply Math.max() javascript built in function and you get the largest number.
Source Code:
________________________________________________________________________
// Write a javascript program to find greatest number among three number
var i = +prompt ("Please Enter First Number");
var j = +prompt ("Please Enter Second Number");
var k = +prompt ("Please Enter Third Number");
var x = Math.max(i,j,k);
document.write(x+" is the greatest number");
________________________________________________________________________
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos .
#JavaScriptTutorials #JavaScriptfunction