In the closure section of JavaScript, what exactly should the variable object of the global environment contain?

the following figure shows the closure in the Red Treasure Book, the classic code. Then, when we look at it, we find that the diagram of the scope chain contains the createComparisonFunction () function and the result variable in the global environment variables. Why does it not include compareNames?
clipboard.png
clipboard.png

?

Thank you all in advance!

Mar.07,2021
The

global variable does have this thing.
may be that the author thinks it is just a reference, not the focus of the closure, so it is not drawn in the picture
. Others may not have thought of,:) escape

.
Menu