Sikau

JavaScript · Day 68 · about 35 min

Project: Expense report

Your whole toolbox in one report.

Put the toolbox to work

One last project: turn a messy list of expenses into a tidy monthly report. You'll split text, convert numbers, sort, format prices and handle bad data safely.

The raw data

Expenses arrive as lines of text: date,item,amount. Some are broken. Here's how to read one line:

const line = "2026-10-03, Momo ,180.5";
const [date, item, amount] = line.split(",");
console.log(date, item.trim(), parseFloat(amount));

The rest of this lesson

  • Clean, then summariseexplain
  • Summaries with reduce and sortexplain
  • Drop the nullspredict
  • Report pipelineorder
  • Build the reportchallenge
  • Badge quizquiz
  • JavaScript foundations complete!recap

Continue this lesson free — run real code in your browser

Continue with Google

See all 68 lessons of JavaScript