Cars Report - Yifu
✓ Published0🌍 Public
This example demonstrates an asynchronous data pipeline that fetches car listings and filters them by price to generate a text report. The page initially displays “loading…” before using a Promise with `setTimeout` to simulate a two-second network delay. After retrieving the JSON data, the `generateReport` function filters cars priced above $2,000 and formats each entry using template literals from `formatCar`. The final report replaces the loading message in the HTML `<pre>` element, showcasing basic JavaScript async programming and modular exports.
AI-generated descriptionA practice of using js and async programming that I'm learning to prepare for NLP co-op!
The tutorial that this practice came from (https://www.youtube.com/watch?v=_8V5o2UHG0E&t=1220s)
MIT Licensed