├── 1 └── README.md /1: -------------------------------------------------------------------------------- 1 | let count = 0; 2 | 3 | function increment() { 4 | count++; 5 | updateCount(); 6 | } 7 | 8 | function decrement() { 9 | count--; 10 | updateCount(); 11 | } 12 | 13 | function updateCount() { 14 | document.getElementById('count').innerText = count; 15 | } 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Frontend 2 | Счетчик на JavaScript 3 | --------------------------------------------------------------------------------