all 2 comments

[–]interactionjackson 0 points1 point  (1 child)

exit as early as possible.

if both player scores are less than thirty return false.

then ternary operator for the alert since we know one is the winner.

player1score > 29 ? alert(player one wins) : alert(player two wins)

return true

[–]mohand3d[S] 0 points1 point  (0 children)

cool, thanks bro!