Answer the question
In order to leave comments, you need to log in
How did jqeury.prototype.constructor turn out to be an object?
I do not understand, as far as I know, in the constructor on the prototype there must be an object constructor function.
I.e:
func shit();
shit.prototype.constructor == shit;
console.log(jq.prototype.constructor); // function (a,b){return new n.fn.init(a,b)} вроде все ок
console.log(jq.prototype.constructor.prototype==jq.prototype); // true как и ожидалось
console.log(typeof jq.prototype.constructor); // function
console.log(jq.prototype.constructor.ajax); // function (a,b){"object"==typeof a&&(b=a,a=void ........ КАК?!
Answer the question
In order to leave comments, you need to log in
A function has methods. What's unusual here?
That's interesting, but this does not lead to prostration?
Functions in Javascript are first-class citizens.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question