From f45e07ff0a99a4e19e524e311ef78ccdcfde9f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Castro=20Mart=C3=ADn?= Date: Tue, 10 Sep 2024 10:00:53 +0200 Subject: [PATCH] Const observables Observables shuld be const in order to avoid overwriting errors. --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 3575bf7..3e2f9bf 100644 --- a/main.js +++ b/main.js @@ -2,8 +2,8 @@ import {htmlToElement, Observable} from "./framework.js"; let mainInput = document.querySelector("input"); -let nInputs = new Observable(mainInput.value); -let message = new Observable("Binded data"); +const nInputs = new Observable(mainInput.value); +const message = new Observable("Binded data"); function inputElement() { let element = htmlToElement(`