Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Fork of HTML Starter

0 stars0🌍 Public
Vvcnaveenkumar
Last edited Apr 27, 2023
Created on Apr 24, 2023
Forked from HTML Starter

This example demonstrates how to display and format car data within an HTML page using plain JavaScript. It shows two separate text elements, each populated with car information from hardcoded JSON arrays, including filtering cars by year and formatting them into readable strings. The code uses the `document.getElementById` method to select elements, `JSON.parse` to convert JSON strings into JavaScript objects, and array methods like `filter`, `map`, and `join` to process and display the data. The second script appends its output to the first element's existing content.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed