🌍 Public
Viewing a saved revision (read-only)
46daa0416909409a93b59b197c52931e
Cars Export
This example displays a filtered inventory of cars priced under $2000, rendering each as a formatted text line. It uses React and imported modules `cars` and `formatCar` from separate files. The `index.js` filters the car data, maps each entry through `formatCar` to generate strings like `"2009 Ford F150: $1950"`, joins them with newlines, and writes the result to a DOM element via `document.getElementById`. The page layout is simple HTML with a large `<pre>` tag.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.