When we create the JavaScript function within another function and the inner function freely access all the variable of outer function.