javascript change sign of number code example Example: js make value positive Math.abs(-4)//returns 4 Math.abs(4)//returns 4