Loading...
Search for a command to run...
Loading...
Slide 1 of 7
let: Block-scoped, can be reassignedconst: Block-scoped, cannot be reassignedvar: Function-scoped (avoid)string, number, boolean, null, undefined, object, symbol, bigint
let name = "Alice";
const age = 25;
// Dynamic typing
let value = "Hello";
console.log(typeof value);
value = 42;
console.log(typeof value);
// Template literals
const greeting = `Hello, ${name}! You are ${age}`;
console.log(greeting);
// Strict vs loose equality
console.log(5 == "5"); // true
console.log(5 === "5"); // false