Explain Your Scorekeeping Kit

Your kit passed both exercises. Marco’s scorers keep their own totals, the winner is announced once, the big screen gets cached best rounds, and the standings come out in the right order. Passing tests shows that the code works. It doesn’t show that you could explain why it works or change it when Marco’s rules change.

In this review, you’ll talk your mentor through the kit you built. You’ll predict what your scorers and wrappers do, trace the round total call by call, and then make a change to the kit that you haven’t seen before. Start by getting your code in front of you.

Get Your Kit Ready

Your mentor reviews the code you wrote, so have it ready to paste. Open Exercise: Build the Team Scorers and Exercise: Total Rounds and Rank the Standings, and copy your solutions from the editor. You’ll need these six functions:

  • makeTeamScorer(), once(), makeBestRound(), and memoize() from the first exercise
  • roundTotal() and standings() from the second

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.