Math.abs(number)
Returns the absolute value of a number
number - The numeric expression for which the absolute value is needed
The absolute value of the number argument
Math.abs(-10.222)
ECMAScript 262 Edition 1,2,3