Objects
Objects in JavaScript
Objects store data as key-value pairs and are fundamental to JavaScript.
Code Examples
// Creating objects\nconst person = {\n name: "John",\n age: 30,\n city: "New York"\n};\n\n// Accessing properties\nconsole.log(person.name);\nconsole.log(person["age"]);\n\n// Adding properties\nperson.email = "john@example.com";
Course Navigation
JavaScript Basics
DOM Manipulation
DOM Manipulation