Fork of Cars Report
✓ Published0🌍 Public
This fork demonstrates a simple JavaScript report generator using ES6 modules and asynchronous data loading. It parses an embedded JSON array of five cars, filters them by a price threshold, and formats each result as a string with year, make, model, and price. The `getCars()` function returns a Promise that resolves after a two-second delay, simulating an API call. The final report replaces a “Loading...” message in the page’s `<pre>` element, showcasing object destructuring and array methods like `filter` and `map`. The example also includes a separate test file that accesses car data directly.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed