Your pack checker passes its tests, so it’s time to talk it through. In this review, you’ll explain what each of your three functions hands back, check a displayed total against the number behind it, and adapt the checker to a trail rule you haven’t seen yet.
Explaining code out loud shows you which parts you understand and which parts only happen to work. Adapting your code to a new rule tests the same thing from the other side.
Talk Through Your Checker With the Mentor
Before you start, open the exercises Convert and Total the Pack Weights and Check the Limit and Show the Total, and copy your code from both. The mentor can’t see your editor or run your code, so you’ll paste it into the chat.
The button below opens a new conversation. The mentor asks one question at a time and waits for your answer. When you’re stuck, it gives you a hint or a smaller case rather than the answer. The session takes about ten minutes and ends with brief feedback on what went well and what to practice.