Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Fork of Cars Report

0 stars0🌍 Public
Ggharakhani1986
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from Cars Report

This fork demonstrates a simple JavaScript report generator using ES6 modules and asynchronous data loading. It parses an embedded JSON array of five cars, filters them by a price threshold, and formats each result as a string with year, make, model, and price. The `getCars()` function returns a Promise that resolves after a two-second delay, simulating an API call. The final report replaces a “Loading...” message in the page’s `<pre>` element, showcasing object destructuring and array methods like `filter` and `map`. The example also includes a separate test file that accesses car data directly.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed