function a(){
this.testing = 'testing';
}
function b(){
}
b.prototype = new a();
console.log(b.testing);
Konsol, 'sınama' yerine tanımsız gösterir. Neyi yanlış yapıyorum?Prototip Kalıtım. Bu basit örnekte neyin var?
+1. – corsiKa