✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
func ?
function createCounter () {
var numberOfCalls = 0;
return function () {
return ++ numberOfCalls;
}
}
var func = createCounter ();
func ();
func ();
func ();