Variables
👨💼 We need a way to store and reuse values in our programs. Variables let us
give names to values so we can reference them later.
JavaScript has two main ways to declare variables:
const- for values that won't change (constants)let- for values that might change later
- Create a constant called
greetingwith the value"Hello" - Create a variable called
namewith your name - Log both values using
console.log()
💰 Here's the syntax:
const myConstant = 'some value'
let myVariable = 'another value'