I am trying to solve a very simple exercise, they gave me 2 variables a and b, if a is falsy so we will assign b to result.
We must not use the If statement and the ternary operator.
Here is the suggestions they gave me :
function run(a, b) {
let result
...
return result
}
Could you please give me some ideas ? Thank you very much for your time.