单项选择题

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