crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Objects</h2> <p id="demo"></p> <script> const person = { firstName: "Mahmoud", lastName: "abdelsalam", id: 5566, }; person.name = function() { return this.firstName + " " + this.lastName; }; document.getElementById("demo").innerHTML = "My father is " + person.name(); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBPYmplY3RzPC9oMj4NCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQpjb25zdCBwZXJzb24gPSB7DQogIGZpcnN0TmFtZTogIk1haG1vdWQiLA0KICBsYXN0TmFtZTogImFiZGVsc2FsYW0iLA0KICBpZDogNTU2NiwNCn07DQpwZXJzb24ubmFtZSA9IGZ1bmN0aW9uKCkgew0KICByZXR1cm4gdGhpcy5maXJzdE5hbWUgKyAiICIgKyB0aGlzLmxhc3ROYW1lOw0KfTsNCg0KZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRlbW8iKS5pbm5lckhUTUwgPQ0KIk15IGZhdGhlciBpcyAiICsgcGVyc29uLm5hbWUoKTsgDQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==