95 words
1 minutes
Context in Programming
In programming, context
refers to the situation or environment in which your code runs. It affects how your code behaves and what it can access. For example:
Execution Context
This is like the current setup
when a piece of code runs. It includes things like what variables are available and the value of certain keywords like this
in JavaScript.
Scope Context
This is the area
where certain variables or functions are accessible. For example, a variable inside a function can’t be seen outside that function because it’s in a different scope or context.
Further Reading
Context in Programming
https://rabisiddique.com/posts/context/Author
Rabi Siddique
Published at
2024-07-19