JSFiddle - React, Tailwind, and code Playground

by kkdaily

JavaScript

/* write a program that takes an array of colors, where each instance of a color represents a vote for that color. Return the name of the color that recieved the most votes. In the case of a tie, return just one of the winning colors instead. */