Scopes and Closures In-depth Unit 2: Compilation and Interpretation
Scopes and Closures In-depth - Java Brains
6 plus ones
Shared publicly•View activity
- Well, it's both, isn't it? i is always 10 because of both there being a single copy of i and the setTimeout callbacks being called asynchronously. I do explain just what you mentioned in the video (https://javabrains.io/courses/corejs_scopesclosures/lessons/Closures-In-async-Callbacks) at around 6:40. Do check that out and let me know if you see any errors there.May 8, 2016
Add a comment...