选择题21题:输出是什么?

1class Chameleon { 2 static colorChange(newColor) { 3 this.newColor = newColor 4 return this.newColor 5 } 6 7 constructor({ newColor = 'green' } = {}) { 8 this.newColor = newColor 9 } 10} 11 12const freddie = new Chameleon({ newColor: 'purple' }) 13 14console.log(freddie.colorChange('orange'));
难度:
更新时间:2022-01-09

本题为单选题”

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!