3 ms·
Javascript already has a conditional expression, the ternary operator: `condition ? expr-if-true : expr-if-false`.
by dtech 9y ago
Javascript already has a conditional expression, the ternary operator: `condition ? expr-if-true : expr-if-false`.
- hajile 9y agoIt doesn't have code blocks (aside from self-executing lambdas) and is very hard to reason about when nested.