document.getElementById('hello').innerHtml = '안녕';
addEventListener('event', function(){})
input / change 차이점
input 👉 값이 변경될 때마다 실행 , 타이핑 하는 도중에도
change 👉
input에서는 값이 변경되고 입력란 바깥을 클릭했을 때 실행,
select에서는 값이 변경될 때 실행
getElementsByClassName('')[i]
querySelector('.class명 || #id명')
가장 상위 한개만 찾음
querySelectorAll('')[i]
모든 요소 찾음 👉 index 사용