From 88805a16613b109551ea8b22144de57b201faa76 Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul12345@users.noreply.github.com> Date: Mon, 7 Aug 2023 09:58:52 +0530 Subject: [PATCH] Update Lazy.js --- Lazy/scripts/Lazy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lazy/scripts/Lazy.js b/Lazy/scripts/Lazy.js index c0740b1..aa74acb 100644 --- a/Lazy/scripts/Lazy.js +++ b/Lazy/scripts/Lazy.js @@ -30,8 +30,8 @@ class Lazy { `; this.update = (text, date) => { - var textNode = this.container.querySelector('.text'); - var timeNode = this.container.querySelector('.time'); + let textNode = this.container.querySelector('.text'); + let timeNode = this.container.querySelector('.time'); textNode.innerHTML = text; timeNode.innerHTML = this.getFormattedTime(date); };