* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
7 lines
525 B
Markdown
7 lines
525 B
Markdown
# Conditional Operators
|
|
|
|
The conditional (ternary) operator is the only JavaScript operator that takes three operands: `condition ? valueIfTrue : valueIfFalse`. It is a concise alternative to `if...else` for simple conditional assignments or expressions. Nesting ternary operators deeply is discouraged because it reduces readability.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@JavaScript MDN Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#conditional_operator) |