The Closure is a collection of all variables in scope at the time of function creation. To…
let
const, and var