From 878017ed8b68e89024fbe4372552e09d08169798 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 6 Aug 2023 03:56:12 +0300 Subject: [PATCH] fixed init variable bug --- pages/js/rev2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/js/rev2.js b/pages/js/rev2.js index 1d6767e..9add11d 100644 --- a/pages/js/rev2.js +++ b/pages/js/rev2.js @@ -16,7 +16,7 @@ export function update_rev2(data) { // Обновление HP const content_element = document.getElementById('rev2_emenies'); data.enemies.forEach((emeny) => { - enemy_data = emeny.split(' '); + let enemy_data = emeny.split(' '); // Элемент с именем монстра const enemy_name = document.createElement('p');