Explain Your Practice Partner

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.js and the askPartner() function in public/chat.js, to paste when the mentor asks for them
  • The server running with node --env-file=.env server.js and the club’s page open at http://localhost:3000
  • The terminal output from your real session, including the stop and cost lines

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.