var MyClass = function() {
//some functionality goes here
};
MyClass.prototype.xyz = function() {
//some functionality goes here
};
MyClass.prototype.abc = function() {
var self = this;
// here self is not working and 'this.xyz()' isn't working too.
self.xyz();
// It works if I use MyClass.prototype.xyz();
};
Can someone help with what I am missing here?