Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report - Part 8

Public visualization

Viewing a saved revision (read-only)

055ac61c98df4fe1ab56dd446fefcff6

Cars Report - Part 8

0 stars0🌍 Public
RRonyHobby
Last edited Jun 18, 2022
Created on Jun 18, 2022

This example displays a report of affordable cars, listing each vehicle’s year, make, model, and price in a large-text HTML `<pre>` element. It uses JavaScript arrays and objects to store car data in `cars.js`, and demonstrates modular programming with `formatCar` and `generateReport` functions. The report filters the car list to show only those priced under $2000, using `Array.filter`, `Array.map`, and `Array.join` to construct the output.

AI-generated description

An example tutorial of how to use JavaScript ojects, arrays, and modules.