3個簡單但棘手的JavaScript面試問題

3個簡單但棘手的JavaScript面試問題 JavaScript數組的length屬性 問題一 clothes[0] 的值是什麼?java const clothes = ['jacket', 't-shirt']; clothes.length = 0; clothes[0]; // => ??? Answer 數組對象的 length 屬性具備特殊的行爲:減小length屬性的值的反作用是
相關文章
相關標籤/搜索