Skip to content

Commit adb18e8

Browse files
committed
Array mcq
1 parent 8c252c9 commit adb18e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Array/arraymcq.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
let arr = [,,,]
2+
let arr2 = [1, 2, 3, 4] // 4
3+
let arr3 = [[1, 2, 3], [4, 5, 6]] // 2
4+
console.log(arr)// 3 empty items
5+
console.log(arr.length)//3
6+
console.log(arr2)
7+
console.log(arr2.length)//4
8+
console.log(arr3)
9+
console.log(arr3.length)//2 sub aaray
10+
11+
112

213

314
console.log([] === []) // false

0 commit comments

Comments
 (0)