Skip to content

Commit 7060881

Browse files
committed
Practice with arrays
1 parent 5463161 commit 7060881

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
// create an array variable containing the names
2+
let familyMembers = ["Flavia", "Aldi","Cesar","Cesarito","Kevin"]
3+
24

35
// write a for loop that prints each name on a different line
6+
7+
for (let i = 0; i < familyMembers.length; i++) {
8+
console.log(familyMembers[i]);
9+
}

0 commit comments

Comments
 (0)