diff --git a/public/script.js b/public/script.js index 9c6912e..5b7fe73 100644 --- a/public/script.js +++ b/public/script.js @@ -10,3 +10,8 @@ document.addEventListener('DOMContentLoaded', () => { // Load tasks will be called here later (Issue #9) }); +function deleteTask(id) { +tasks = tasks.filter(task => task.id !== id); +renderTasks(); +// If using local storage (Issue #9), call saveTasks() here +}