Olası Çoğalt: developer.mozilla.org at JavaScript docs yılında
What it the significance of the Javascript constructor property?Javascript'te bir sınıfın 'prototype.constructor' özelliğini ayarlamak ne zaman gereklidir?
, miras konusuyla ilgili
// inherit Person
Student.prototype = new Person();
// correct the constructor pointer because it points to Person
Student.prototype.constructor = Student;
Ben niye acaba bir örnek var Prototipin kurucu özelliğini burada günceller miyim?
'var ST2 = st.constructor();' new' anahtar kelimeyi kaçırır. Var olmalıdır var st2 = new st.constructor(); ' – golem