const days = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']; let capitalize = days.map(day => day.charAt(0).toUpperCase() + day.slice(1).toLowerCase()); console.log(capitalize); Run code snippet