convert negative number to positive in javascript

JavaScript
Math.abs("the negative number")var x = 20;
x *= -1;
Source

Also in JavaScript: