Key Concepts

Review core concepts you need to learn to master this subject

if Statement

if (a == 10) { // Code goes here }

An if statement is used to test an expression for truth.

  • If the condition evaluates to true, then the code within the block is executed; otherwise, it will be skipped.
Conditionals & Logic
Lesson 1 of 2

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo