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) -}