var let const different code example
Example: const let var
var greeter;
console.log(greeter); // greeter is undefined
greeter = "say hello"
var greeter;
console.log(greeter); // greeter is undefined
greeter = "say hello"