tag:blogger.com,1999:blog-4670696957759498256.post6769486319502656984..comments2023-05-28T10:04:34.212+01:00Comments on Richard's Blog: Functional JavaScript: Scope and HoistingUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4670696957759498256.post-38022916838680824502015-08-18T16:51:54.586+01:002015-08-18T16:51:54.586+01:00Fair enough, that makes sense to clarify.
Fair enough, that makes sense to clarify.<br />RichieChttps://www.blogger.com/profile/06262142900805252001noreply@blogger.comtag:blogger.com,1999:blog-4670696957759498256.post-27908762300953868122015-08-18T13:27:41.551+01:002015-08-18T13:27:41.551+01:00I guess I would say that it's not so much that...I guess I would say that it's not so much that they disappear (that only happens when the garbage collector comes to take them away) just that they cannot be accessed by any 'higher up' functions.DanLDBhttps://www.blogger.com/profile/18050853392418804932noreply@blogger.comtag:blogger.com,1999:blog-4670696957759498256.post-70023495438126976142015-08-18T12:28:03.632+01:002015-08-18T12:28:03.632+01:00Absolutely. And I just have done with a tiny updat...Absolutely. And I just have done with a tiny update - When the function finishes, the variables disappear - as in they will not be carried over into subsequent functions. <br /><br />Does that work?RichieChttps://www.blogger.com/profile/06262142900805252001noreply@blogger.comtag:blogger.com,1999:blog-4670696957759498256.post-34785271340502809992015-08-18T12:13:04.127+01:002015-08-18T12:13:04.127+01:00Could you clarify what you mean by 'When the f...Could you clarify what you mean by 'When the function finishes, the variables disappear.'?DanLDBhttps://www.blogger.com/profile/18050853392418804932noreply@blogger.com