코딩 스쿨에 오신것을 환영합니다~~

Q11. 다음은 객체를 이용하여 합계와 평균을 구하는 프로그램이다. 밑 줄친 곳을 채우시오. (200점)

<script>
    var scores = {kor:80, eng:90, math:100}
    total = scores.kor + _________+ scores.math;
    avg = total/3;

    document.write("합계 : " + _________);
    document.write("<br>");
    document.write("평균 : " + _________);
</script>

- 난이도(1~10) : 2

  • - 실행 결과
정답보기 목록보기 완료/포인트얻기
 

<script>
    var scores = {kor:80, eng:90, math:100}
    total = scores.kor + scores.eng + scores.math;
    avg = total/3;

    document.write("합계 : " + total);
    document.write("<br>");
    document.write("평균 : " + avg);
</script>