function condition(){
this.expression = "";
this.toString = function(){
return this.expression;
}
};
function and(first, second){
this.expression = first + " and " + second;
}
function nop(){};
nop.prototype = condition.prototype;
and.prototype = new nop();
var a =new and(1,2);
console.log(a.toString());
則有望看到「1和2」作爲輸出,但事情是這樣的: 「的翻譯:」這段JavaScript繼承的代碼有什麼問題?