Your Elm Street tracker passes both sets of tests, and check-library.js prints every line the brief expects. Board games, puzzles, and ride-ons describe themselves. The lending desk refuses a bad loan without changing either side, and typed ages arrive as numbers. However, passing checks only shows what your code does. The next time the volunteers ask for something new, you’ll need to know why it’s built the way it is.
In this review, you’ll explain your tracker to the mentor, one question at a time, and then change it to handle a request the brief didn’t cover. You’ll show why you model each kind of item with a subclass and build the lending desk from parts, which method runs when a shelf label is printed, and where each typed value becomes a number. Start by getting your code ready to share.
Talk Through Your Tracker
The mentor needs your code in front of it. Open your tracker’s folder and have library.js and lend-at-desk.js ready to copy into the chat, along with any other modules that library.js imports from. Keep a terminal open in the same folder. The mentor can’t run code, but you can, with node. Some questions ask you to predict a result and then check it.
The review only counts with your own code, because the point is to explain the choices you made. If you can’t find your tracker, reopen Exercise: Catalog the Toys and Exercise: Lend Toys Safely, where your last code is saved. If it’s gone from there too, rebuild it from the project brief and its checks first, then come back here with the code you wrote.