Questioning the function of "let" when declaring a variable

Out of the various JS keywords for declaring variables, only var & function also append themselves to the globalThis if 1 doesn’t exist there yet.

Also, both var & function hoist themselves to the top of a file or function; and they’re function-scoped.

On the other hand, let, const and class don’t hoist the variable they declare; and are block-scoped.

Warning: if a script is run as an ECMA module, the whole file is in “strict mode”; and besides that, not even var & function can auto-append themselves to the globalThis!!!