From fac97dadccd7d7da9c44409d6262ec4d7e8e2837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Tue, 13 Apr 2021 14:49:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D1=82,=20=D0=BC?= =?UTF-8?q?=D0=B8=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 001.мир.js | 7 +++++++ 090.проверка.js | 25 ++++++++++++++++++++++++- 499.пуск.js | 1 + index.html | 1 + 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 499.пуск.js diff --git a/001.мир.js b/001.мир.js index 22429e7..6e0a924 100644 --- a/001.мир.js +++ b/001.мир.js @@ -180,3 +180,10 @@ function Мир() // Конструктор. this.события = {}; } + +/* + * + * Создание глобального мира. + * + */ +мир = new Мир(); diff --git a/090.проверка.js b/090.проверка.js index fa04507..ed31f13 100644 --- a/090.проверка.js +++ b/090.проверка.js @@ -1 +1,24 @@ -console.debug("090") +console.debug("090", мир); + +/* + * + * Реакции + * + */ + +ПроверитьМир = мир => +{ + console.debug("привет, мир"); +}; + +/* + * + * Последовательность + * + */ + +мир.разобрать(` +пуск + проверить мир +`); + diff --git a/499.пуск.js b/499.пуск.js new file mode 100644 index 0000000..df758ae --- /dev/null +++ b/499.пуск.js @@ -0,0 +1 @@ +мир.уведомить("пуск"); diff --git a/index.html b/index.html index 11287f0..89c3994 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ +