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
{{ message }}
Repository navigation
Commit dcaa811
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: assignments/array-methods.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -66,17 +66,17 @@ console.log(fullName);
66
66
// ==== Challenge 2: Use .map() ====
67
67
// 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
68
68
// let allCaps = [];
69
-
constallCaps=runners.map(function(){
70
-
"first_name".toUpperCase
71
-
});
69
+
letallCaps=runners.map(function(items){
70
+
returnitems.first_name.toUpperCase();
71
+
});
72
72
73
73
console.log(allCaps);
74
74
75
75
// ==== Challenge 3: Use .filter() ====
76
76
// 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