MCAP interview question

What's the scope of a JS variable

Interview Answer

Anonymous

12 July 2022

Scope is the visibility of a variable. Global means it can be accessed from anywhere. Local means only where it is defined.