GoDaddy Interview Question

Given two strings representing poker hands, write a function(s) in JavaScript that determines the outcome of the play