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 }}
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
You have an object of mentors and their ages below, but the keys are inconsistent. JOSH and JAMIE are uppercase, while james and Mozafar are not. You want to return an array of mentors with the names in uppercase.
You're going to have to used what we learned at the start of this lesson, and some other JavaScript methods to accomplish this task.
*/
let mentorsAges = {
james: 29,
JOSH: 35,
JAMIE: 25,
Mozafar: 30
};
// ONLY EDIT BELOW THIS LINE
let mentorsNames = Object.keys(mentorsAges);
let mentorsNamedUppercased = mentorsNames.map(item => item.toUpperCase());