It turns out that all variables, parameters of function are not deleted after the end of function's work, because only objects are deleted.
But what about lexical environment then? This object is created when the function is called, it contains all local variables, parameters... And this object is deleted when the function ends its work.
Or... variables are not deleted? Only what was copied into the lexical environment is deleted? How should I understand this?
Do all local variables remain after the end of function's work? Or not? And what's happening with objects, which are inside function? When does garbage collector understand that it's time to delete these objects?