const and let code example
Example: const let var scope
var num = 1; //var can be function or global scoped
const num = 2; //const can only be block scoped
let num = 3; //let can only be block scoped
var num = 1; //var can be function or global scoped
const num = 2; //const can only be block scoped
let num = 3; //let can only be block scoped