Skip to content

Commit b033e4e

Browse files
committed
Creation JS Lesson 8 (Array)
0 parents  commit b033e4e

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

app1.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const arr = [];
2+
3+
arr.push(1,2,3,2,3,'dsf');
4+
5+
console.log(arr);
6+
console.log(arr[0]);
7+
console.log(arr[1]);
8+
9+
arr[0] = 'Start'
10+
11+
console.log(arr);
12+
13+

app2.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const matrix = [
2+
[1,2,3],
3+
[0,0,4],
4+
[9,8,6]
5+
]
6+
7+
console.log(matrix[2][0]);
8+

0 commit comments

Comments
 (0)