From 6121e3369311f21ac49cdc5a16da3afd2481768d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Montan=C3=A9?= <70690658+jaumemy@users.noreply.github.com> Date: Mon, 11 Jan 2021 20:04:06 +0100 Subject: [PATCH] Changing const listers to liters Changed "listers" for "liters" . It works because its written the same when referencing it, but I think it would be better if changed for the actual word liters :) --- drink-water/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drink-water/script.js b/drink-water/script.js index c96d09d..7296506 100644 --- a/drink-water/script.js +++ b/drink-water/script.js @@ -1,5 +1,5 @@ const smallCups = document.querySelectorAll('.cup-small') -const listers = document.getElementById('liters') +const liters = document.getElementById('liters') const percentage = document.getElementById('percentage') const remained = document.getElementById('remained') @@ -44,6 +44,6 @@ function updateBigCup() { remained.style.height = 0 } else { remained.style.visibility = 'visible' - listers.innerText = `${2 - (250 * fullCups / 1000)}L` + liters.innerText = `${2 - (250 * fullCups / 1000)}L` } -} \ No newline at end of file +}