Question 08
What is max() method.
Ans
It return maximum number from
two numbers.
Question 09
Give two examples of max
function.
Ans
Math.max(44,33);
It returns 44
Math.max(33,88);
It returns 88
Question 10
What is min() method
Ans
It returns minimum number from
two numbers.
Question 11
Give example of min() method.
Ans
Math.min(33,11);
It returns 11
Math.min(22,10);
It returns 10
No comments:
Post a Comment