Click in order · JavaScript and TypeScript course · Module 1: JavaScript Basics

Sorting: if Syntax

Arrange the if statement elements in the correct order:

Items to click

  • if
  • (condition)
  • }
  • {
Show the answer

Correct order:

  1. if
  2. (condition)
  3. {
  4. }