HTML In Javascript
-document의 함수들 중, getElementById 라는 함수는 HTML에서 id를 통해 element를 찾아준다.
const title = document.getElementById("title");
-element를 찾고 나면, JS로 해당 HTML의 무엇이든 바꿀 수 있다.
ex) element의 innerText를 바꿈
title.innerText = "Got you!";
-id, className 등을 가져올 수 있음
console.log(title.id);
console.log(title.className);