🌍 Public
Viewing a saved revision (read-only)
cab223c846f6431795be7782786d1c70
Untitled
This example demonstrates two car objects, Hong's Sonata and Kim's Jeep, with their properties and speed-up functionality displayed as text on an HTML page. The page shows each vehicle's name, color, and the increased speed value after calling the speedup method. The code defines a Car constructor function in plain JavaScript and uses getElementById to update paragraph elements with the car data. The visualization relies on fundamental DOM manipulation through the document API, without additional libraries or frameworks.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.