I am getting this error
it is showing listarr.forEach is not a function.
let newLiTag='';
listArr.forEach((element, index) =>{
newLiTag+= `<li> ${element} <span class="check" onclick="check(${index})"> <i class="fas fa-check"></i></span>
<span onclick = "modify(${index})"><i class="fas fa-edit"></i></span>
<span onclick = "deleteTask(${index})"><i class="fas fa-trash"></i></span> </li>`;
});
Please check if you have declared the variable listArr. Example:
let newLiTag='';
const listArr = []; // Add variable listArr here
listArr.forEach((element, index) =>{
// Do things here
});