Explain Your Budget Tracker

Dana’s tracker now does everything her brief asked for. It loads her expenses, adds November once, reports her spending, and proves that the what-if left her real budget alone. The exercises checked that your code gives the right results. But tests can’t tell whether you could explain why the code is built this way.

In this review, you’ll talk the mentor through your tracker, the way you’d walk a friend through code you wrote. You’ll say why each file has its job, why the loader converts the dates, and why the what-if needs a deep copy. Then you’ll make a change to the tracker that you haven’t seen yet.

Get Your Project Ready

The review works on your own files, so have them ready before you start. Open a terminal in your budget-tracker folder and run node main.js.

Its numbers should match the ones in the project brief, with Real budget unchanged: true on the last line. If they don’t, go back to Exercise: Add a Month and Plan a What-If and finish that step first.

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.