Pregunta de entrevista de American Express

using the class syntax in JavaScript, code a small method that determines the winner of a poll