Name
Math.abs( ): compute an absolute value â ECMAScript v1
Synopsis
Math.abs(x
)
Arguments
-
x
Any number.
Returns
The absolute value of x
.
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.