Skip to content

Commit 277a3c6

Browse files
author
Siyuan Gao
authored
Update Exercise37.js
1 parent b7014fc commit 277a3c6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Lesson07/Exercise37/Exercise37.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
let singers = [];
2-
Array.isArray(singers);
1+
let exampleArray1 = [];
2+
Array.isArray(exampleArray1);
33

44
// Or
5-
singers = new Array();
6-
typeof singers
5+
let exampleArray2 = new Array();
6+
Array.isArray(exampleArray2);
77

88
// Or
9-
singers = new Array(6);
9+
let exampleArray3 = [];
10+
typeof exampleArray3
11+
12+
// Or
13+
let exampleArray4 = new Array(6);
14+
console.log(exampleArray4);
1015

1116
// Or
1217
let singers = new Array(6).fill('miku');

0 commit comments

Comments
 (0)