I sometimes use the following syntax that I find elegant and useful. What do you think about it? And What do you suggest to replace it? ```js var foo = condition1 ? a : condition2 ? b : condition3 ? c : d; ```
I sometimes use the following syntax that I find elegant and useful.
What do you think about it? And What do you suggest to replace it?