Course Content
Module 1: Introduction to JavaScript
0/1
Lesson 2 Variables, Data Types & Operators
0/1
Lesson 3 Conditional Statements
0/1
Lesson 4 Loops
0/1
Lesson 5 Functions
0/1
Lesson 6 Arrays & Objects
0/1
Lesson 7 DOM Introduction
0/1
Lesson 8 Event Handling
0/1
Lesson 9 ES6 Basics
0/1
JavaScript for Beginners: From Zero to Building Interactive Web Apps

Conditional Statements

if, else if, else

Logical operators: &&, ||, !

🧪 Practice:

Check if a number is positive, negative, or zero

✅ Example:

 
let number = -3;
if (number > 0) {
console.log("Positive");
} else if (number < 0) {
console.log("Negative");
} else {
console.log("Zero");
}