Advertisements
Advertisements
Question
The output of Math.abs(−99.99) is 100.00.
Options
True
False
MCQ
True or False
Solution
This statement is False.
Explanation:
- The Math.abs() function obtains the argument's absolute value, removing the negative sign and returning the positive value.
- Math.abs(−99.99) will return 99.99, not 100.00.
shaalaa.com
Is there an error in this question or solution?