Performance of different Math.abs(x);

Test different ways to get a positive value.

CSS

body{font-family:monospace;}

JavaScript

var a = -5;

var b = math.abs(a);

alert(b)