Variables

  • Variables are defined with let and const
  • They label a piece of data
  • Variables defined with "let" can be reassigned. "const" variables cannot
let data = "Ryan";
data = 123;
data = false;
data = null;
const something = 456;
something = 123 // TypeError

3 / 24