insertAdjacentHTML() method๋ ์ด๋ฏธ ์ฌ์ฉ ์ค์ธ element๋ฅผ ๋ค์ parsing ํ์ง ์์์ 'innerHtml'๋ณด๋ค ์์ ์ด ๋ ๋๋ฏ๋ก ๋น ๋ฅด๋ค. Position Option'beforebegin': Before the element itself.
๋ฐฐ์ด์ ๋ฌธ์์ด์ ํํ๋ก ๋ฐ๊พธ์ด์ค๋ค. join(','), join('/') ์ด๋ฐ์์ผ๋ก ๊ตฌ๋ณ์๋ฅผ ๋ฃ์ด์ ๋ฐฐ์ด ๋ด์ item๋ค ๊ตฌ๋ณํด์ค ์ ์๋ค. ๊ธฐ๋ณธ๊ฐ์ ,(comma)Q1. make a string out of an arrayString ๊ฐ์ฒด๋ฅผ ์ง์ ํ ๊ตฌ๋ถ์๋ฅผ ์ด์ฉํ์ฌ
์ฐธ๊ณ ) toDoForm.querySelector("input") = document.querySelector(์ฐธ๊ณ ) const newTodo = toDoInput.value๋input์ ํ์ฌ value๋ฅผ ์๋ก์ด ๋ณ์์ ๋ณต์ฌํ๋ ๊ฒ. ๊ทธ ๋ค์์ ๋ฌด์์ ํ๋ newTodo