0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Count Completed Tasks

Conditions inside a loop can count objects whose properties match a rule.

Your task

Count the task objects whose done property is true, then display Completed: 2.