With regard to the prototype chain, it is better to have a detailed explanation.

10, what is the correct option?
Let Q=function () {};
Object.prototype.q=function () {};
Function.prototype.p=function () {};
Let q=new Q ();
Alav Q can get Q but not p;
Blav Q can get Q but not p;
CPLV Q can get qMagol p;
DVV Q can get p but not Q;


in js, every function is actually a function object!
as mentioned in the title, Function.p () and Object.q () are obviously callable, while Function.q () can also be called.
so Q is Function,. Both methods can be called directly.
and q=New Q (); q is an Object, so you cannot call p directly. But q.constructor returns Q, so q.constructor.p () is callable.

go back to the question and choose the answer C. although Q can't get p directly, it can be obtained indirectly.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e477f0-27178.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e477f0-27178.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?