//Closures are the inner functions that are embedded in parent functionfunctiongetName(){// print name function is the closure since it is child function of getNamefunctionprintName(){return'Kevin'}// return our function definitionreturn printName;}const checkNames =getName();
console.log(checkNames());