convert negative number to positive in javascript
snippet in javascript

convert negative number to positive in javascript

user4188

Math.abs("the negative number")

javascript convert minus to plus

user4613

var x = 20;
x *= -1;