You did a great job so far and you would like to review below points:
line 55-59: you can create a forEach loop with two parameters (element and i)
line 6-9: you can create a new module with variables and export them crud.js file and to other files
Repetition makes your code WET. Remove either localStorage.setItem('tasks', JSON.stringify(tasks));
Use an arrow function function createTask(task) {
const taskEl = document.createElement('li');
taskEl.setAttribute('id', task.id);
taskEl.classList.add('item');
if (task.completed) {
taskEl.classList.add('complete');
}
You did a great job so far and you would like to review below points: