From 6e515742e5347962154c9d2b0bcfd1d1827c38c6 Mon Sep 17 00:00:00 2001 From: Lavrentiy Rubtsov Date: Tue, 22 Mar 2022 23:55:20 +0600 Subject: [PATCH] Fixed the display on the site --- 1-js/04-object-basics/08-symbol/article.md | 1 + 1 file changed, 1 insertion(+) diff --git a/1-js/04-object-basics/08-symbol/article.md b/1-js/04-object-basics/08-symbol/article.md index 2f8ac693..2401b400 100644 --- a/1-js/04-object-basics/08-symbol/article.md +++ b/1-js/04-object-basics/08-symbol/article.md @@ -268,6 +268,7 @@ Symbols are always different values, even if they have the same name. If we want Symbols have two main use cases: 1. "Hidden" object properties. + If we want to add a property into an object that "belongs" to another script or a library, we can create a symbol and use it as a property key. A symbolic property does not appear in `for..in`, so it won't be accidentally processed together with other properties. Also it won't be accessed directly, because another script does not have our symbol. So the property will be protected from accidental use or overwrite. So we can "covertly" hide something into objects that we need, but others should not see, using symbolic properties.