单项选择题

以下声明对象的方式错误的是?()

A.var obj ={};
B.var obj =new Object();
C.var obj ={name:’bw’};
D.var obj =[]