Files

8 lines
530 B
Markdown
Raw Permalink Normal View History

2023-03-30 01:23:01 +01:00
# Conditional statements
2023-01-02 04:47:46 +04:00
When you write code, you often want to perform different actions for different decisions. You can use conditional statements in your code to do this. In JavaScript, we have three conditional statements: `if`, `if...else`, and `switch`.
Visit the following resources to learn more:
2024-06-06 23:23:55 +01:00
- [@article@Making decisions in your code — conditionals](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals)
2026-06-12 11:06:50 +02:00
- [@article@Conditional branching: if, ?](https://javascript.info/ifelse)