Computer Science, asked by tansyjena1478, 1 year ago

Understanding function scope and context in JavaScript?

Answers

Answered by maralsarthak1834
0

Answer:

Context is related to objects. It refers to the object to which a function belongs. When you use the JavaScript “this” keyword, it refers to the object to which function belongs. Scope refers to the visibility of variables, and content refers to the object to which a function belongs.

Similar questions