[JavaScript] addEventListener is not a function
0. 배경 - HTML, CSS, JS로 간단 자기소개서 만들기 - 텍스트에 mouseover해서 색상 바꾸고, mouseout하면 원래 색상으로 돌아가기 - getElementsByClassName()으로 'main_item_container' 클래스의 element 가져와서 타겟으로 하기 1. 문제 상황 # jeonsoyeong.html 전소영 addEventListener is not a function 에러 발생 # jeonsoyeong.js var contents = document.getElementsByClassName("main_item_container"); contents.addEventListener("mouseover", function(event) { event.target.sty..