Practice ยท 1 of 1
Model a Learner
Model real data:
1. Create learner โ an object with name (string), streak (number), and skills (an array of at least two skill names).
2. Write isOnFire(person) that returns true when streak is 7 or more.
3. Create cohort โ an array of two learner objects (reuse the same shape). Log the name of the second one.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Objects: Labeled Data โ Practice