shagunnichant93/expense-tracker ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Node.js console expense tracker for practicing JavaScript array methods.

I want to be able to see a list of expenses, add a new expense, delete one, and filter expenses by category. It should also show the total spent overall, and a breakdown of totals by category. Please use array methods like map, reduce, and filter in a clean way so the code is easy to follow and learn from.

Keep it as a command line app, not a browser app. Make it feel like a small learning project, so the flow is straightforward and the output is easy to read in the terminal. If you need to check current Node docs or best practices, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab