const abs_1=Math.abs(2.4)
const abs_2=Math.abs(-2.4)
const abs_3=Math.abs(10)
const abs_4=Math.abs(-10)
document.write('Math.abs()▶절대값)','<br>')
document.write('Math.abs(2.4) : ')
document.write(abs_1)
document.write('<br>','Math.abs(-2.4) : ')
document.write(abs_2)
document.write('<br>','Math.abs(10) : ')
document.write(abs_3)
document.write('<br>','Math.abs(-10) : ')
document.write(abs_4)
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.