JavaScript has 3 types of scope:
let and const are not mounted on window, but on script.
What is script?
Can I understand it as Global scope?
I don't understand it very well, so I hope you can help me. Thanks!
If you add multiple script tags to a HTML File with multiple variables the script scope the scope of a particular variable inside one of the script comes as a Script Scope. In Firefox devtools simply call such a scope "block" as because variables in the scirpt scope can be accessed in another script tag(including the external ones).
For A Much Detailed Explanation You Can Read The Following Answer