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