javascript math absolute

JavaScript
Math.abs(-4)//returns 4
Math.abs(4)//returns 4//Return the absolute value of number
Math.abs(number);Math.abs(-7.25); // returns 7.25
Source

Also in JavaScript: