Skip to main content
100%

Cars Report - Yifu

✓ Published0🌍 Public
YYifu Chen
Last edited Dec 26, 2019
Created on Dec 24, 2019
Forked from HTML Starter

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 description

A 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

Similar vizzes