66.构造函数(打印结果)

书诚小驿2025/03/10前端面经Javascript
const Animals = function () {};
Animals.prototype.name = "lihua";
const dogs = new Animals();
console.log(dogs.__proto__ === Animals.prototype, Animals.name);
// true Animals
最后更新时间' 2025/3/10 02:17:16