A variable declared directly inside of a function body is local to that function. That property is not accessible directly by any other functions.

Here, length is a function-local variable.

You can learn more about this in:
Run Edit