Beginner
You're building a task management system and need to manipulate a list of tasks. What's incorrect about this implementation?
1const tasks = ["Configure server", "Setup database", "Initialize app"];23// Add "Deploy application" to the end4// Remove first task5// Check if "Setup database" exists67function manageTasks(taskList) {8 taskList.unshift("Deploy application");9 taskList.pop();10 return taskList.includes("Setup database");11}1213console.log(manageTasks(tasks));