Skip to content

Commit 7b4bfeb

Browse files
committed
Taking a break
1 parent 6deec9d commit 7b4bfeb

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎assignments/array-methods.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ const runners = [{"id":1,"first_name":"Charmain","last_name":"Seiler","email":"c
5656
// ==== Challenge 1: Use .forEach() ====
5757
// The event director needs both the first and last names of each runner for their running bibs. Combine both the first and last names into a new array called fullName.
5858
let fullName = [];
59+
60+
runners.forEach(value => console.log(value.first_name));
61+
5962
console.log(fullName);
6063

6164
// ==== Challenge 2: Use .map() ====

‎assignments/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<title>JS II</title>
99

10-
<!-- <script src="array-methods.js"></script> -->
11-
<script src="callbacks.js"></script>
10+
<script src="array-methods.js"></script>
11+
<!-- <script src="callbacks.js"></script> -->
1212
<!-- <script src="closure.js"></script> -->
1313
<!-- <script src="stretch-function-conversion.js"></script> -->
1414
</head>

0 commit comments

Comments
 (0)