From afb6f762ab021d3e78ac323bb294a35ec0e8931e Mon Sep 17 00:00:00 2001 From: Kapakayala Naga sai krishna vinay swami <66941388+siddhusniper@users.noreply.github.com> Date: Wed, 8 Dec 2021 13:40:19 +0530 Subject: [PATCH] set count to 0 instead of change html element, we can directly set the count to zero whenever we click save button --- 1. Build a Passenger Counter App/27. Set the count to 0/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/1. Build a Passenger Counter App/27. Set the count to 0/index.js b/1. Build a Passenger Counter App/27. Set the count to 0/index.js index 74c5d00a..46dd89b2 100644 --- a/1. Build a Passenger Counter App/27. Set the count to 0/index.js +++ b/1. Build a Passenger Counter App/27. Set the count to 0/index.js @@ -10,5 +10,6 @@ function increment() { function save() { let countStr = count + " - " saveEl.textContent += countStr + count = 0 }