CodingJS

Solve programming problems in Javascript or TypeScript!

 ~  ~ JS Syntax Help

Logic-2

--

blackjack

Given 2 int values greater than 0, return whichever value is nearest to 21 without going over. Return 0 if they both go over.

Examples

(ctrl-enter)

Popup content