Conditionals in JavaScript
- if statement
- Double equal (==) issues in JavaScript
- Compare values using == in JavaScript
- Compare values using === in JavaScript
- Comparision operators
- Comparision operators - examples
- Booleans: true and false
- Falsy values in JavaScript
- Truthy values in JavaScript
- Logical operators
- Toggle boolean
- Convert Truthy and Falsy values to boolean
- Short circuit
- if - else
- else if
- Switch (case) in JavaScript
- Math.round
- Rounding up a float to integer (ceil)
- Rounding down a float to integer (floor)
- Converting float to integer (trunc)
- Math.random
- Throw a dice (random integers 1-6)
- Exercise: Calculator
- Solution: Calculator
- Exercise: Guess number
- Solution: Guess number