function removeExistingTasks() {
  let taskList = document.getElementById("task_view_div");
  let tasks = taskList.querySelectorAll("div .task-div");
  tasks.forEach((task) => task.remove());
}
/**
 * Removes the existing tasks from the DOM
 * @function removeExistingTasks
 */
Removes the existing tasks from the DOM
@function removeExistingTasks
Removes the existing tasks from the DOM @function removeExistingTasks
function removeExistingTasks() {
  let taskList = document.getElementById("task_view_div");
  let tasks = taskList.querySelectorAll("div .task-div");
  tasks.forEach((task) => task.remove());
}
function removeExistingTasks ( ) { let taskList = document . getElementById ( "task_view_div" ) ; let tasks = taskList . querySelectorAll ( "div .task-div" ) ; tasks . forEach ( ( task ) => task . remove ( ) ) ; }
Removes the existing tasks from the DOM
 @function removeExistingTasks
Removes the existing tasks from the DOM @function removeExistingTasks