Declaring Variables

Declaring Variables

  • Variables are created by declaring them

  • Use the let keyword to declare a variable

  • If you declare a variable without assigning it an initial value, the value of that variable will be undefined


// declaring a variable

let firstName;

Variables only need to be declared once