Return value for the function is a value that representing a specified number or NaN if the value is not a number or 0 if the value is null. Lets take some example to understand the concept of Absolute value. Var b Mathabs-675.
To get the absolute value of a number in JavaScript use the Mathabs function.
The Mathabs method is used to return the absolute value of a number. This method accepts a single parameter as mentioned above and described below. It contains well written well thought and well explained computer science and programming articles quizzes and practicecompetitive programmingcompany interview Questions. Var d MathabsHello.