Mega Code Archive
Categories
/
JavaScript Tutorial
/
Math
Math abs()
Syntax math.abs(num) The abs() method is used to calculate the absolute value of num.
This example calculates the absolute value of the number entered.
Enter Number:
Answer: