DEV Community 👩‍💻👨‍💻

Discussion on: Javascript Underdogs: Part 1 - The WeakMap

val_baca profile image
Valentin Baca

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".

kepta profile image
Kushan Joshi Author

Fixed, thanks so much for pointing that out