原创 js(2)

10、null與undefined的不同點? *null是一個字面量(而不是全局對象的一個屬性,undefined 是); *null是一個表示"無"的對象,轉爲數值時爲0;undefined是一個表示"無"的原始值,轉爲數值時爲NaN。