Services Work Learn About Contact
0/10
Lesson 3 of 10

Operators & Conditions

Operators perform actions on values. Arithmetic: + - * / %. Comparison: === !== > < >= <=. Logical: && || !.

Use if/else if/else to run code only when a condition is true. Always use === instead of == for strict equality.

JS
let score = 85;

if (score >= 90) {
  console.log("A");
} else if (score >= 80) {
  console.log("B");
} else {
  console.log("C");
}
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed JavaScript!

You finished all 10 lessons and quizzes. You now know the basics of JavaScript.