Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 996 Bytes

File metadata and controls

36 lines (23 loc) · 996 Bytes

24. Data transformation project

Turn raw records into useful output.

Learn

  • filtering
  • sorting
  • grouping
  • formatting

How it works

A data pipeline can validate raw records, normalize fields, filter unwanted entries, sort a copy, and format a result for display. Keep each stage small enough to test independently. Document how missing values and ties are handled.

Common mistake

Array sort mutates the original, which can surprise other code holding that array.

Guided challenge

Build a small report from sample sales records with totals, categories, sorting, and formatted output.

Run the example

Open example.html in a browser and edit example.js. Save, refresh, and use the Console and debugger to inspect values.

Completion check

  • Explain the core idea in your own words without reading the code.
  • Change one input and predict the output before running it.
  • Test one boundary or failure case, then record what you changed.