crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Objects</h2> <p>Access nested objects:</p> <p id="demo"></p> <script> const myObj = { name: "ahmed", age: 30, cars: { car1: "Ford", car2: "BMW", car3: "Fiat" } } document.getElementById("demo").innerHTML = myObj.cars.car2; </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBPYmplY3RzPC9oMj4NCjxwPkFjY2VzcyBuZXN0ZWQgb2JqZWN0czo8L3A+DQoNCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQpjb25zdCBteU9iaiA9IHsNCiAgbmFtZTogImFobWVkIiwNCiAgYWdlOiAzMCwNCiAgY2Fyczogew0KICBjYXIxOiAiRm9yZCIsDQogIGNhcjI6ICJCTVciLA0KICBjYXIzOiAiRmlhdCINCiAgfQ0KfQ0KZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRlbW8iKS5pbm5lckhUTUwgPSBteU9iai5jYXJzLmNhcjI7DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==