The below code is saying object has no method hehe
var A = function () {
this.hehe = function () { };
};
var B = function () {};
B.prototype = Object.create(A.prototype, {
constructor: {
value: B,
enumerable: false,
writable: true,
configurable: true
}
});
var _b = new B();
_b.hehe();