Допустим, у меня есть следующий фрагмент кода.
function test(id) { alert(id); }
testChild.prototype = new test();
function testChild(){}
var instance = new testChild('hi');
Можно ли получить alert ('hi')
? Теперь я получаю undefined
.