Message from JavaScript discussions

March 2018

— Acknowledgements are written after the book is complete...

— 

Hey, ive got some discussion somewhere... what if object link was removed, but this object created links and objects in GlobalScope - will this object be removed from memory by garbage collector? JS in browser

— I assume you mean "reference" when you say "link"?

— I'll say yes

— Yes? sure?

— If this object put a self-link to the storage?

— Reference or link, yes

— 

var obj = { foo: window };
delete obj;

— Like this?

— obj will be garbage-collected, yes

— Like this (in object): window.SomeData = ...getContext2D();.

— Or window.SomeStorage.push(this)