Update JavaScript style (Chapter of Array and Linkedlist)

This commit is contained in:
justin
2022-12-12 21:33:30 +08:00
parent aceed8f87f
commit 3f39a8c3cc
2 changed files with 2 additions and 8 deletions

View File

@@ -48,12 +48,6 @@ for (const n of list) {
count++;
}
/* 直接遍历列表元素 */
count = 0;
for (const n of list) {
count++;
}
/* 拼接两个列表 */
const list1 = [6, 8, 7, 10, 9];
list.push(...list1);