Quiz Javascript Basic - What is the function of the below code snippet?

var scope = "global scope";
function checkscope() {
var scope = "local scope";
function func() {
return scope;
}
return func;
}
Do you find this helpful?