DEV Community

SHAHNAZAR
SHAHNAZAR

Posted on

Got stuck , any thought?

function should accept the inputs 4 and 7. If 4 is entered, the function should return 7. If 7 is entered, the function should return 4. Anything else entered as input should return 0. There's only one catch, your function cannot include if statements, switch statements, or the ternary operator.

Top comments (0)