Update theme-template.js

This commit is contained in:
dmadhushika 2018-10-09 20:36:29 +05:30 committed by GitHub
parent 3f21014dd8
commit a3868630b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
const btn = document.getElementById('btn')
const btn = document.getElementById ('btn')
let count = 0
function render() {
btn.innerText = `Count: ${count}`
btn.innerText = `Count: ${count}`
}
btn.addEventListener('click', () => {
@ -11,4 +11,4 @@ btn.addEventListener('click', () => {
count += 1
render()
}
})
})