Store information with let, const, and var. Work with strings, numbers, and booleans.
// Variables - prefer const, use let when reassigning
const flavor = "Espresso";
let shots = 2;
const isHot = true;
// Strings, Numbers, Booleans
const total = shots * 2.50; // 5
const label = flavor + " x" + shots; // "Espresso x2"
Use const by default. Only use let when the value will change.
Strings (text), Numbers, Booleans (true/false) — the basics.