mirror of
https://github.com/bendtherules/blog-hashnode-backup.git
synced 2026-08-18 21:51:56 +00:00
update post: Closure and this - How are variables resolved within functions?
This commit is contained in:
@@ -25,7 +25,7 @@ Here we have a outer function, which returns a inner function, and this inner fu
|
|||||||
|
|
||||||
**What is the output above? How is the variable `myText` resolved within the function?**
|
**What is the output above? How is the variable `myText` resolved within the function?**
|
||||||
|
|
||||||
In the same note, we'll also look at **how is `this` resolved within the function body?**
|
In the same note, **how is `this` resolved within the function body?**
|
||||||
|
|
||||||
## Creating and calling function is different
|
## Creating and calling function is different
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user