Skip to content

Commit

Permalink
Const observables
Browse files Browse the repository at this point in the history
Observables shuld be const in order to avoid overwriting errors.
  • Loading branch information
luiscastro193 authored Sep 10, 2024
1 parent 2ca441d commit f45e07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(`<article>
Expand Down

0 comments on commit f45e07f

Please sign in to comment.