Girl Develop It Buffalo

JS101 Class 3 Exercises: Objects

Home

The Todo list

  • Create an array of objects, where each object describes a task and has properties for the description (a string), priority (a string), and whether or not it's done (boolean)
  • Iterate (loop) through the array of tasks and output the task using an if/else statement to change the output depending on whether it's done or not. If it's done, log a string like '[X] Sleep (high)', and if not, log a string like '[ ] Sleep (high)'