crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1>JavaScript Functions</h1> <script> const student = { fullName: function(age,country) { return this.firstName + " " + this.lastName + " " + age + " " + country; } } const first = { firstName:'Ahmed', lastName:'Mohamed' } document.write(student.fullName.call(first,25,'Egypt')); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDE+SmF2YVNjcmlwdCBGdW5jdGlvbnM8L2gxPg0KDQo8c2NyaXB0Pg0KY29uc3Qgc3R1ZGVudCA9IHsNCiAgZnVsbE5hbWU6IGZ1bmN0aW9uKGFnZSxjb3VudHJ5KSB7DQogICAgcmV0dXJuIHRoaXMuZmlyc3ROYW1lICsgIiAiICsgdGhpcy5sYXN0TmFtZSArICIgIiArIGFnZSArICIgIiArIGNvdW50cnk7DQogIH0NCn0NCmNvbnN0IGZpcnN0ID0gew0KICBmaXJzdE5hbWU6J0FobWVkJywNCiAgbGFzdE5hbWU6J01vaGFtZWQnDQp9DQpkb2N1bWVudC53cml0ZShzdHVkZW50LmZ1bGxOYW1lLmNhbGwoZmlyc3QsMjUsJ0VneXB0JykpOw0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=