Comment on Bite-size coding challenge: implement if/else in JavaScript without `if` or `?:`Comments−Someone6y function ifThenElse(cond, trueFn, falseFn) { cond && trueFn(); cond || falseFn(); }
Comments