HTML Starter
✓ Published0🌍 Public
This example demonstrates asynchronous JavaScript data loading and report generation. It imports a car dataset from a JSON string parsed with `JSON.parse`, fetches it via a custom `getCars` promise with a two-second delay, and filters cars by price using `generateReport` and `formatCar` modules. The resulting text, listing years, makes, and prices, is displayed in a `<pre>` element styled with CSS. The code uses ES6 modules, array methods like `filter` and `map`, and template literals, with no external libraries.
AI-generated descriptionJavascript Objects Arrays and Modules.
MIT Licensed