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
// 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.
// 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
81
-
leti=0;
82
77
letallCaps=runners.map(capFirst=>{
83
-
console.log(runners[i].first_name.toUpperCase())
84
-
i++;
85
-
78
+
console.log(capFirst.first_name.toUpperCase())
86
79
});
87
80
88
81
89
82
// ==== Challenge 3: Use .filter() ====
90
83
// The large shirts won't be available for the event due to an ordering issue. Get a list of runners with large sized shirts so they can choose a different size. Return an array named largeShirts that contains information about the runners that have a shirt size of L and log the result
0 commit comments