JSREF

JavaScript Math.abs()

The Math.abs() method returns the absolute value of a number.