→ 클릭 이벤트의 경우 클릭을 인지할 수 있지만 어떤 것이 클릭되었는지 알 수 없음
event.target.parentElement
local storage
newTodo가 그려질 때마다 그 텍스트를 배열에 push하고 싶음
localStorage에는 오직 텍스트만 저장할 수 있음 → 배열 저장 못함
JSON.stringify() → object나 array나 어떤 것이든 string으로 바꿔주는 기능
⇒ array 형태로 저장
왜 중요한가? localStorage있는 것들을 불러오는 것을 배울 것이기 때문
JSON.parse() → string→js object
forEach
parsedToDos.forEach((item)⇒console.log(”this is the turn of”,item));