beginner42 minby DevFox

if / else and switch

Make a program choose which lines run. Ask a condition with if, take the other road with else, ask questions in order with else if, and match one value against exact cases with switch, ending every case with break. See why a box made inside braces is unknown after them, pick one of two values with the conditional operator ? :, and make TaskKit act on its command and answer a missing task with a hint.

  • TypeScript
  • Fundamentals
`if` / `else` and `switch`. Read this lesson at .