function a (){ this.testing = 'testing'; } function b (){ } b.prototype = new a(); console.log(b.testing);
Консоль показывает undefined, а не «тестирование». Что я делаю не так?