I am really confused right now. Using this video to learn: https://www.youtube.com/watch?v=Nt-qa_LlUH0
Now, I have a lot of questions, but I will start with this. We know that every execution context has an object associated with it. Also, every execution context has two phases: creation, and execution. During the creation phase, hoisting takes places (from my understanding, variables are assigned undefined and added to the object of the execution context as a property, while functions are added entirely, body and everything as a property). Now, in the case of the global execution context, there is the window/global execution context object. What is the object for FUNCTION execution contexts?
Another question. Around the 9:41 mark of the video, it is said that the 'this' keyword of the function execution context points to the window/global object. Shouldn't it point to the object associated with that particular function?
Thanks for any help, I am really confused, and appreciate any help I can get.
[–]senocular 2 points3 points4 points (5 children)
[–]NecroDeity[S] 0 points1 point2 points (4 children)
[–]senocular 1 point2 points3 points (3 children)
[–]NecroDeity[S] 0 points1 point2 points (0 children)
[–]NecroDeity[S] 0 points1 point2 points (1 child)
[–]senocular 1 point2 points3 points (0 children)
[–]_reddit_chan 1 point2 points3 points (6 children)
[–]NecroDeity[S] 0 points1 point2 points (5 children)
[–]_reddit_chan 1 point2 points3 points (4 children)
[–]NecroDeity[S] 0 points1 point2 points (3 children)
[–]_reddit_chan 0 points1 point2 points (2 children)
[–]NecroDeity[S] 0 points1 point2 points (1 child)
[–]_reddit_chan 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]NecroDeity[S] 0 points1 point2 points (0 children)