You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assignments/array-methods.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,9 @@ const runners = [
56
56
];
57
57
58
58
// ==== Challenge 1: Use .forEach() ====
59
-
// 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.
60
-
letfullName=[];
61
-
console.log(fullName);
59
+
// The event director needs both the first and last names of each runner for their running bibs. Combine both the first and last names and populate a new array called fullNames. This array contains just strings.
60
+
letfullNames=[];
61
+
console.log(fullNames);
62
62
63
63
// ==== Challenge 2: Use .map() ====
64
64
// The event director needs to have all the runner's first names converted to uppercase because the director BECAME DRUNK WITH POWER. Convert each first name into all caps and log the result
0 commit comments