Your practice partner passes every test in Exercise: Build the Practice Partner, and you’ve watched it hold a real session with Mei using your own provider. The tests checked what your code does. They couldn’t check whether you can say why it does it or change it when the club asks for something new.
In this review, you’ll explain your partner to a mentor the way you’d walk a colleague through a feature before it goes live. You’ll say where the key lives, why a longer session costs more per turn, what Stop saves the club, and what a member sees when a reply breaks off. Then you’ll make a change to your code that no lesson has shown you.
Before You Start
The review works best with your project open next to it. Have these ready, because the mentor will ask about them:
- Your
partner-route.jsand theaskPartner()function inpublic/chat.js, to paste when the mentor asks for them - The server running with
node --env-file=.env server.jsand the club’s page open athttp://localhost:3000 - The terminal output from your real session, including the stop and cost lines