Current value: 0
increment #count's textContent - Adds 1 to the counter's valuedecrement #count's textContent - Subtracts 1 from the counter's valueput 0 into #count - Resets the counter to zeroincrement #count's textContent by 5 - Add 5 instead of 1decrement #count's textContent by 10 - Subtract 10increment my value - Increment an element's value attributeincrement @data-score - Increment a data attribute
The count mirror below the buttons uses:
on mutation of childList from #count to reactively update whenever the counter changes!
This pattern watches for content changes in the #count element and automatically
mirrors the value.