Empowering Education, Inspiring Excellence
Your premier destination for authoritative educational content.
MaxLearning Academy

Pick a Challenge

Start from the top or jump to whatever looks fun

Progress: 0 / 8


πŸ“‹ JavaScript Cheat Sheet

Variables

let name = "Maxwell";
let age = 10;
let cool = true;

Print to Output

console.log("Hello!");
console.log(42);
console.log(name);

Math

let sum = 5 + 3;     // 8
let diff = 10 - 4;   // 6
let product = 3 * 7; // 21
let half = 20 / 2;   // 10

If / Else

if (age >= 18) {
  console.log("Adult");
} else {
  console.log("Kid");
}

Functions

function greet(name) {
  return "Hi, " + name + "!";
}
console.log(greet("Max"));

Loops

for (let i = 1; i <= 5; i++) {
  console.log(i);
}
// Prints: 1, 2, 3, 4, 5