Skip to main content
100%

Cars Report - Video 1

✓ Published0🌍 Public
Tttarnalicki3@gatech.edu
Last edited Aug 20, 2024
Created on Aug 20, 2024
Forked from Cars Report

A short JavaScript tutorial demonstrates a text report of used cars by filtering and formatting object data. The example shows a hard-coded array of five car records, each containing year, make, model, and price, and produces a pre-formatted message written to the DOM via `document.getElementById`. The code uses ES6 modules (`import`/`export`), array methods `filter` and `map`, and a `formatCar` function returning a template literal. The final report lists only cars priced under $2,000, displayed in the browser as plain text.

AI-generated description

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

MIT Licensed

Similar vizzes