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(), andmemoize()from the first exerciseroundTotal()andstandings()from the second