Files
developer-roadmap/roadmaps/javascript/content/ifelse@ndbDXAx6bL4lZmpXv16Y_.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

8 lines
509 B
Markdown

# if...else
The `if...else` statement executes a block of code if a condition is true, and an optional `else` block if it is false. Additional conditions can be checked with `else if`. It is the most basic form of conditional logic in JavaScript.
Visit the following resources to learn more:
- [@article@if...else - MDN docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else)
- [@article@Conditional branching: if, ? - javascript.info](https://javascript.info/ifelse)