Thenew關鍵字是一個運算子,它建立一個沒有成員的物件,並用自身作為this運算子呼叫它的建構函式,從而初始化該物件。
theArray = new Array(); theDate = new Date("Jan 3 1962"); theObject = new Object;