you know how to give input to a function through form.
Let 2 numbers are no1 and no2
Now write a function with this code
if(no1 > no2){
alert("Larger Number is " +no1);}
else if(no1 < no2){
alert("Larger Number is " +no2);
}
else{
alert("Numbers are equal ");
}
Let 2 numbers are no1 and no2
Now write a function with this code
if(no1 > no2){
alert("Larger Number is " +no1);}
else if(no1 < no2){
alert("Larger Number is " +no2);
}
else{
alert("Numbers are equal ");
}