JavaScript Lessson 6

JavaScript If Statement

Lesson 5 Lesson 7

Notes:

If Statement:

  • The if statement specify a block of code to be executed, if a specified condition is true.
  • The else if statement specify a new condition to test, if the first condition is false.
  • The else statement specify a block of code to be executed, if the same condition is false.