Math.abs() 메소드를 사용하면 된다.


Math.abs(-5) -->5

+ Recent posts