下列定义数组的方法中( )是正确的。
A. var x = new Array[ "item1"; "item2"; "item3"; "item4" ]
B. var x = new Array("item1", "item2", "item3", "item4")
C. var x = new Array{ "item1", "item2", "item3", "item4"}
D. var x = new Array{ "item1"; "item2"; "item3"; "item4"}