American Express interview question

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