JavaScript Objects
<!DOCTYPE html> <html> <body> <h2>Creating an object literal</h2> <script> const car = { brand: "Toyota", model: "Corolla", year: 2022, isElectric: false }; console.log(car.brand); // "Toyota" console.log(car.year); // 2022 </script> </body> </html>