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

Exercise prompt

Update a Selected Record

A loop and condition can locate one object in an array before updating its property.

Your task

Complete the loop so only the task whose id matches selectedId becomes done. Display Selected done: true and keep the first task unchanged.