From 17bff75476362aa0d120ae3b05109b89ecbdc52b Mon Sep 17 00:00:00 2001 From: marleyrae Date: Sun, 28 May 2023 17:24:13 -0700 Subject: [PATCH] :fire: refactor: Remove counter.js --- results-summary-component/counter.js | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 results-summary-component/counter.js diff --git a/results-summary-component/counter.js b/results-summary-component/counter.js deleted file mode 100644 index 881e2d7..0000000 --- a/results-summary-component/counter.js +++ /dev/null @@ -1,9 +0,0 @@ -export function setupCounter(element) { - let counter = 0 - const setCounter = (count) => { - counter = count - element.innerHTML = `count is ${counter}` - } - element.addEventListener('click', () => setCounter(counter + 1)) - setCounter(0) -}