해야할 것
TIL
#javascript
localStorage.setItem("todos", JSON.stringify(toDos));
JSON.parse(localStorage.getItem("todos"));
const arr = ["a", "b", "c"];
function sayHello(arr) {
console.log("Hello", arr);
}
arr.forEach(sayHello);
// Hello a, Hello b, Hello c 가 출력됨.
arr.forEach((arr) => console.log("Hello", arr));
// function을 따로 안만들고 forEach 인자에 화살표함수로 한번에 위처럼 할 수도 있음. 결과는 같음.