re: Javascript Underdogs: Part 1 - The WeakMap VIEW POST


Very informative!

One potential correction:

If we lose the key, the javascript compiler can deduce that there is no way to access the thing associated with the key and it can safely remove it from the memory.

I think "compiler" should instead be "garbage collector".

code of conduct - report abuse