how to get an absolute in js
snippet in javascript

how to get an absolute in js

user5914

var value = Math.abs(-10);
// value returns 10