Shapes with SVG and CSS
✓ Published0🌍 Public
This example illustrates a car pricing report asynchronously loaded via a JavaScript Promise. The `getCars` module parses a static JSON array and resolves it after a two-second delay. `index.js` then filters this data by a maximum price using `generateReport`, formats each car with the `formatCar` template, and injects the resulting text into the DOM. The page also contains an SVG circle rendered solely with HTML and CSS, while the report text updates dynamically without any visualization library.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed