August 2024
Intermediate to advanced
516 pages
11h 47m
English
The following exercises provide you with the opportunity to practice with optimizing your code. The solutions to these exercises are found in the section Chapter 20.
You’re working on software that analyzes sports players. Following are two arrays of players of different sports:
| | const basketballPlayers = [ |
| | { firstName: 'Jill', lastName: 'Huang', team: 'Gators' }, |
| | { firstName: 'Janko', lastName: 'Barton', team: 'Sharks' }, |
| | { firstName: 'Wanda', lastName: 'Vakulskas', team: 'Sharks' }, |
| | { firstName: 'Jill', lastName: 'Moloney', team: 'Gators' }, |
| | { firstName: 'Luuk', lastName: 'Watkins', team: 'Gators' }, |
| | ]; |
| | |
| | const footballPlayers = [ |
| | { firstName: 'Hanzla', lastName: 'Radosti', team: '32ers' }, |
| | { firstName: 'Tina', ... |
Read now
Unlock full access