Skip to content

Commit af235f5

Browse files
New folder "Arrays"
1 parent 037a8dd commit af235f5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
<li>Coding else statements</li>
1717
<li>Incorporating else if</li>
1818
<li>Loops</li>
19+
<li>Arrays</li>
1920
</ul>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//A friend array
2+
const friends = ["Tom", "Mia", "Lee"];
3+
console.log(friends);
4+
//Empty array
5+
const friends1 = [];
6+
console.log(friends1);
7+
//A array with one friend
8+
const friends2 = ["Tom"];
9+
console.log(friends2);
10+
//Using commas to separate the items
11+
const friends3 = ["Tom", "Mia"];
12+
console.log(friends3);
13+
14+
const siblings = ["Luz"];
15+
console.log(siblings);
16+
17+
18+
const activeUsers = ["Finn"];
19+
console.log("Active:");
20+
console.log(activeUsers);
21+
22+
const flavors = ["vanilla", "pistachio"];
23+
console.log(flavors);

0 commit comments

Comments
 (0)