$tr.appendChild($td);
      }
      rows.push(cells);
      $table.appendChild($tr);
    }
    body.appendChild($table); 
    body.appendChild($result);

    HTML 파일을 실행하면 다음과 같은 빈 표가 화면에 나옵니다.

    그림 11-3 실행결과

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.