abs
The Math.abs() method returns the absolute (positive) value of x
Syntax
abs(x)
Returns
the absolute (positive) value of x
Parameters
- x (int/float)
- A number.