MCA
JAVASCRIPT BASICS // MASTER THE CONCEPTS // WRITE BRUTAL CODE // JAVASCRIPT BASICS // MASTER THE CONCEPTS // WRITE BRUTAL CODE //
BACK TO SYLLABUS
EASY

JAVASCRIPT BASICS

Variables, data types, operators, and control flow

CONCEPTS

01Let, const, and var
02Primitive data types (string, number, boolean, null, undefined)
03Arithmetic & comparison operators
04If/else and switch statements
05For, while, and do-while loops
06Type coercion

SYNTAX_DEMO

Foundation JS concepts
const name = "Alice";
let age = 25;
const isStudent = true;

if (age >= 18) {
  console.log(`${name} is an adult.`);
} else {
  console.log(`${name} is a minor.`);
}

for (let i = 0; i < 5; i++) {
  console.log("Count:", i);
}