방법1. addEventListener const button = document.querySelector(".container button"); const main = document.querySelector("#main"); const qna = document.querySelector("#qna"); const result = document.querySelector("#result"); function begin() { main.style.display = "none"; qna.style.display = "block"; } button.addEventListener("click", begin); 방법2. in html 시작하기 https://homzzang.com/b/js-1317 홈짱닷컴 홈페..