getElementById
다음 요소가 있습니다 #elem:
#elem
<div id="elem"></div>
getElementById 메서드를 사용하여 이 요소를 가져온 후 텍스트를 설정하세요.