なぜ私はこれを理解できないのですか?
function hello() {
this.say = 'fdfsd';
}
function goodbye() {
this.example = new hello();
}
しかし、そうすればうまくいきます。
function hello() {
this.say = 'fdfsd';
}
function goodbye() {
this.example = false;
}
var goodbye = new goodbye();
goodbye.example = new hello();