多项选择题
A.原型链继承B.构造函数继承C.组合继承D.关联继承
A.function add(a,b){return a+b;}函数表达式B.var add=new Function(‘a’,’b’,’return a+b’)函数表达式C.function add(a,b){return a+b;}函数声明D.var add=function(a,b){return a+b;}函数声明
A.var obj=();B.var obj=[];C.var obj={};D.var obj=//;
A.var test=1;typeof test==’number’;B.var test=1.2;typeof test==’float’;C.var test=undefined;typeof test==’undefined’;D.var test={};typeof test==’object’;
微信扫一扫,加关注免费搜题