awesome-vscode/themes/theme-template.js

14 lines
250 B
JavaScript
Raw Normal View History

2018-07-24 23:45:41 -04:00
const btn = document.getElementById('btn')
let count = 0
function render() {
btn.innerText = `Count: ${count}`
}
btn.addEventListener('click', () => {
// Count from 1 to 10.
if (count < 10) {
count += 1
render()
}
})