localStorage 넣기전, 화면출력만 가능하게 한 코드
delBtn.innerHTML = `<i class="fas fa-times-circle"></i>`;
function paintToDo(text){
const span = document.createElement("span");
span.innerText = text
const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
const result = words.filter(word => word.length > 6);
console.log(result);
// expected output: Array ["exuberant", "destruction", "present"]
The forEach() method executes a provided function once for each array element.
const array1 = ['a', 'b', 'c'];
array1.forEach(element => console.log(element));
// expected output: "a"
// expected output: "b"
// expected output: "c"