JavaScript » Math » abs

Syntax:
Math.abs(x)

This method returns the absolute value of a number.