Question · JavaScript and TypeScript course · Module 1: JavaScript Basics

Conditional Statement

Which code block will execute when the condition in an if statement is false?

Answer options

  • No block will execute
  • The else block
  • The if block
  • Both blocks in sequence
Show the answer

Correct answer:

  • The else block