The Math abs() static method returns the absolute value of a number.
console.log(Math.abs(9));
// 9
console.log(Math.abs(-13.33));
// 13.33
console.log(Math.abs(null));
// 0
console.log(Math.abs("Hello"));
// NaN
console.log(Math.abs(2-3));
// 1