单项选择题
(function(){ var foo; console.log(typeof foo); function foo(){} foo = "foo"; })();打印结果是()
A.function B.undefined C.string D.object
A.20,10,30 B.20,20,10 C.20,10,20 D.20,30,10
A.Animal.prototype.type=”动物”;Animal.prototype.say=function(){console.log(this.type)}); B.Animal={type:”动物”,say:function(){console.log(this.type)} C.Animal.prototype({type:”动物”,say:function(){console.log(this.type)}) D.以上说法都不正确