Variables

  • Variables give a label for data
  • Variables can be referenced in other expressions
  • Variables are assigned with "const", "let", or "var"
  • var is discouraged (obsolete?)
  • The label can be re-pointed to new data if you use "let"
const myName = "Ryan";
let myAge = 28;
const isATeacher = true;
const nothing = null;
var isObsolete = true; // Try to avoid this one

4 / 24