जावास्क्रिप्ट call() मेथड का उपयोग किसी फंक्शन को दूसरे ऑब्जेक्ट के साथ पहले आर्गुमेंट के रूप में कॉल करने के लिए किया जाता है।
उदाहरण
call() मेथड को लागू करना सीखने के लिए निम्नलिखित कोड चलाएं:
<html> <head> <script> var person = { Name:"John", Department: "Finance", fullName: function() { return this.Name + " is from " + this.Department + " Department"; } } var myObject = { Name: "Amit", Department: "Marketing", } x = person.fullName.call(myObject); document.write(x); </script> </head> <body> </body> </html>