const repos = [
{ JavaScript: 82061, CSS: 4992, HTML: 1992 },
{ Ruby: 47816, HTML: 8638, JavaScript: 4419, CSS: 1842 },
{ CSS: 5006, JavaScript: 812, HTML: 336 },
{ Ruby: 1898 },
];
The API has responded.
Each element in the array represents a user's GitHub repository. I am interested in determining their preferred coding language based on total size of code written in that language. Other languages may also be considered.
I am seeking a function that would identify "JavaScript" as the preferred language in this scenario.