Turn raw records into useful output.
- filtering
- sorting
- grouping
- formatting
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.
Array sort mutates the original, which can surprise other code holding that array.
Build a small report from sample sales records with totals, categories, sorting, and formatted output.
Open example.html in a browser and edit example.js. Save, refresh, and use the Console and debugger to inspect values.
- 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.