* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
509 B
Markdown
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) |