Medium

This question is a daily question and will count towards your daily streak.

You’re working on a to-do list app where users can mark tasks as completed. The app should display a list of tasks, but it also needs to handle tasks with multiple statuses (not just "completed" or "pending"). What’s wrong with this code when trying to display the tasks properly?

Choose an option below