Returns the absolute value of a number.
abs(value)
value
A value.
A number.
Math.abs(-42)
42
Math.abs("-1") == Math.abs("1")
true