JavaScript에서 id로 요소 찾기

getElementById
Задание 1

다음 요소가 있습니다 #elem:

html<div id="elem"></div>

getElementById 메서드를 사용하여 이 요소를 가져온 후 텍스트를 설정하세요.