选择篇(011)-当我们这样做时会发生什么?

64 阅读1分钟
function bark() {
    console.log('Woof!');
}
bark.animal = 'dog';
A:Nothing, this is totally fine!
B: SyntaxError. You cannot add properties to a function this way.
C: undefined
D: ReferenceError

参考答案: