欢迎来到PP题库网 PP题库官网
logo
全部科目 > 大学试题 > 计算机科学 > Java考试 > JavaScript考试

单项选择题

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

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题