This document defines functions to manage an array of tasks: addTask adds a task, removeTask removes a task by index, displayTasks logs all tasks with indexes, and promptForTask prompts the user to add a task and adds it. It initializes an empty tasks array and calls displayTasks to log the initial empty list.
This document defines functions to manage an array of tasks: addTask adds a task, removeTask removes a task by index, displayTasks logs all tasks with indexes, and promptForTask prompts the user to add a task and adds it. It initializes an empty tasks array and calls displayTasks to log the initial empty list.
This document defines functions to manage an array of tasks: addTask adds a task, removeTask removes a task by index, displayTasks logs all tasks with indexes, and promptForTask prompts the user to add a task and adds it. It initializes an empty tasks array and calls displayTasks to log the initial empty list.