Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Jjmarcrum3
Last edited Jan 18, 2020
Created on Jan 18, 2020
Forked from React Starter

This example displays a list of cars priced under $2,000. The `generateReport` function filters the hard-coded car JSON data by price and formats each entry with the `formatCar` helper, producing lines like "2009 Ford F150: $1950". The resulting text is output into a `<pre>` element with a large font size using `document.getElementById` and `textContent`. The code uses JavaScript string manipulation and `JSON.parse` for data handling.

AI-generated description
MIT Licensed

Similar vizzes