Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assignments/array-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ console.log(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
let allCaps = [];

runners.map(upper => allCaps.push(upper.first_name.toUpperCase()));
allCaps = runners.map(upper => upper.first_name.toUpperCase());
console.log(allCaps);

// ==== Challenge 3: Use .filter() ====
Expand Down