javascript试题-下面的代码会输出什么?

function employee(name,code)
{
this.name="zhangsan";
this.code="A001";
}
newemp=new employee("lisi",'A002');
document.write(newemp.name + newemp.code);

网友评论0