Skip to content

Commit 1d9a38b

Browse files
authored
completed part one
1 parent 09d223f commit 1d9a38b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arrays/exercises/part-one-arrays.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
//Create an array called practiceFile with the following entry: 273.15
22

3+
let practiceFile = [273.15];
4+
35
//Use the bracket notation method to add "42" and "hello" to the array. Add these new items one at a time. Print the array after each step to confirm the changes.
46

7+
practiceFile.push(42);
8+
console.log(practiceFile);
9+
510
//Use a single .push() to add the following items: false, -4.6, and "87". Print the array to confirm the changes.
11+
12+
practiceFile.push(false, -4.6, "87");
13+
console.log(practiceFile);
14+
15+

0 commit comments

Comments
 (0)