From 649a1598f5ae69187480c4542e93df598557837c Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 24 May 2021 11:34:23 +0300 Subject: [PATCH] minor fixes --- 1-js/13-modules/01-modules-intro/article.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/1-js/13-modules/01-modules-intro/article.md b/1-js/13-modules/01-modules-intro/article.md index cece0ffb..3292e230 100644 --- a/1-js/13-modules/01-modules-intro/article.md +++ b/1-js/13-modules/01-modules-intro/article.md @@ -184,7 +184,9 @@ As you can see, when `1.js` changes the `name` property in the imported `admin`, That's exactly because the module is executed only once. Exports are generated, and then they are shared between importers, so if something changes the `admin` object, other modules will see that. -Such behavior allows us to *configure* modules on first import. We can setup its properties once, and then in further imports it's ready. +**Such behavior is great in practice, because it allows us to *configure* modules on first import.** + +We can setup its properties once, and then in further imports it's ready. For instance, the `admin.js` module may provide certain functionality, but expect the credentials to come into the `admin` object from outside: