Latest videos: Celebs, Cricket, Movies, Recipes

[JS 03] Lexical vs Dynamic Scoping (Binding)

This site requires Adobe Flash Player on your browser.
Please install Adobe Flash Player from here.

Amit
Uploaded by: Amit
on Sat, 06 Jun 2020 12:22:22 IST
 

Binding (also called as Scoping) is of two types - Static and Dynamic. Static Scoping (i.e. Sta... Show more

Binding (also called as Scoping) is of two types - Static and Dynamic.

Static Scoping (i.e. Static Binding) is also called as Lexical Scoping (i.e. Lexical Binding).
JS follows Static (Lexical) Binding/Scoping.
In Static (Lexical) Binding/Scoping, inner scope can access variables of outer scopes, but outer scopes can't access variables of inner scopes. (Child has access to parent's scope. But parent can't access child scope.)

=============== LEGAL DISCLAIMER ===============

This video is an intellectual property of Mr. Amit Shirasao. Views expressed on this video are his personal views. Any of his previous/current/future employers or organizations that he may be affiliated with do not, in any way, take any responsibility for the same.  Show less

Click here for Embed Code
  Embed: Hide

Comments