update post: Closure and this - How are variables resolved within functions?

This commit is contained in:
2020-08-03 09:03:18 +05:30
parent 0cc619cc3a
commit c5a8005e98
+1 -1
View File
@@ -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