Explain Your Plot Board

Mrs. Okafor’s board now answers every question in her brief, and the exercises have checked each answer from the outside. A passing test shows that the board works. It can’t show whether you could explain why it works or change it with confidence when the committee asks for something new.

In this review, you’ll talk a mentor through your own board: when your listener runs, what Node hands it each time, and why your code awaits the body of a POST /waitlist request. Then you’ll get a small change request you haven’t seen, and you’ll make it the way you’d make any change from now on.

Get Your Board Ready

The mentor works from the code you wrote yourself, so have your project files open: server.ts, body.ts, and waitlist.ts. You’ll paste them into the conversation when the mentor asks for them.

You’ll also need a terminal in the project folder, because the change at the end is something you build and call with curl -i, as you did all through the course. Before you add anything new, rename waitlist.jsonl to waitlist-backup.jsonl. The change you’ll make involves the waiting list file, and starting without it lets you see one case the board hasn’t met yet. Your test entries stay safe in the backup.

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.