Variables
Description¶
JavaScript Variables
- Name of storage locn where data is stored
- case-sensitive
- begin with a letter, _ or $
- can contain letters, numberes, underscore or $
- can't belong to reserved keywords
Const¶
const pi='trains'; // An Invariable Variable, Block Scoped
var¶
- mutable
var a = 5; // Function Scoped
let¶
- mutable
let there = "Be Peace"; //Block Scoped