Is there a better way to convert negative numbers to positive in JavaScript? [duplicate]

Yes, there is a better way: Math.abs().

Leave a Comment