Scope

Noun · Development

Definitions

  1. The region of code where a variable is visible and accessible. Block scope, function scope, global scope — understanding scope is the difference between code that works and code that produces the baffling 'undefined is not a function.'

    In plain English: Which parts of a program can see and use a particular variable — like how a conversation in one room can't be heard in another.

Related Terms