Javascript Abs() Function

The abs() function of math object returns absolute value of a number. Use it for example to get absolute value of a number.

Syntax

Javascript Abs() Function Example