What is var, let and const? code example
Example 1: const let var
var makes real ice cubes that rattle around in New York
let makes real ice cubes in Manhatten
const is like let but the ice cubes never change because they are plastic
Example 2: const let var
var greeter;
console.log(greeter); // greeter is undefined
greeter = "say hello"