From 567d911f632c50c639893b491e48a6eb8e36b8f8 Mon Sep 17 00:00:00 2001 From: Dawid Kopys Date: Sat, 24 Oct 2020 13:31:46 +0200 Subject: [PATCH] Minor clarification on WeakMap and WeakSet --- 1-js/05-data-types/08-weakmap-weakset/article.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/1-js/05-data-types/08-weakmap-weakset/article.md b/1-js/05-data-types/08-weakmap-weakset/article.md index bcc5e5e6..178a4e23 100644 --- a/1-js/05-data-types/08-weakmap-weakset/article.md +++ b/1-js/05-data-types/08-weakmap-weakset/article.md @@ -30,7 +30,8 @@ let array = [ john ]; john = null; // overwrite the reference *!* -// john is stored inside the array, so it won't be garbage-collected +// the object previously referenced by john is stored inside the array +// therefore it won't be garbage-collected // we can get it as array[0] */!* ```