The best way to get comfortable with these methods is to practice them, so we will!
You'll be with a partner in a breakout room to work through some practice problems. Assign one person to be the driver and the other to be the navigator. It might be helpful to switch these roles off and on so you have the opportunity to be both!
- Work through the array prototypes in this order:
filter
map
reduce
forEach
sort
- Open the markdown file (example:
filter.md
) - Copy the data and prompt into your array prototype methods scratchpad file in VS Code (within your mod2-sandbox repo)
- Work through the exercises with your partner
- Repeat!