14
जावास्क्रिप्ट प्रोटोटाइप का उपयोग करके कॉलिंग विधि
यदि इसे ओवरराइड किया गया है, तो क्या जावास्क्रिप्ट में एक प्रोटोटाइप विधि से आधार विधि को कॉल करना संभव है? MyClass = function(name){ this.name = name; this.do = function() { //do somthing } }; MyClass.prototype.do = function() { if (this.name === 'something') { //do something new } else { …