예제
<script>
/*
[문제]
3 나누기 7의 연산 결과를 소수점 둘째 자리까지 출력하시오.
*/
/*
[출력예시]
0.43
*/
let a = 3;
let b = 7;
let c = a / b;
c = c.toFixed(2);
document.write(c, "<br>");
</script>
HTML
복사