filmov
tv
Flow Control & Loops in JavaScript
Показать описание
In week 3 of the JS workshop series, we explore:
- How to control the flow of our data with the `if` statement
- Truthiness and falsiness: which values JavaScript treats as `true` or `false`
- More operators that are useful for conditionals, and the operator precedence
- The `switch` statement conditional, and how it differs from an `if` statement
- Iterating with the `while` loop and the `for` loop
- Controlling our loops further with the `break` and `continue` keywords
- How to control the flow of our data with the `if` statement
- Truthiness and falsiness: which values JavaScript treats as `true` or `false`
- More operators that are useful for conditionals, and the operator precedence
- The `switch` statement conditional, and how it differs from an `if` statement
- Iterating with the `while` loop and the `for` loop
- Controlling our loops further with the `break` and `continue` keywords