Login and Register ×
Check your Email for the OTP
JavaScript MCQ Javascript Functions MCQ
⚠ Report ✓ Question Verified Copy Link
function greet() { console.log('Hello, ' + this.name + '!'); }
Explanation:
In this case, the greet function is a property of an object, and the this keyword refers to that object.
greet
this
Related Topic:
Share Above MCQ
Learn More MCQ Questions from JavaScript MCQ Javascript Functions MCQ
Hello, please login before you report any Quesion. Login