scrimba
Frontend-utvikling JS #2
Tell antall klikk #2
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Tell antall klikk #2
AboutCommentsNotes
Tell antall klikk #2
Expand for more info
index.js
run
preview
console

const txtAntall = document.getElementById("txtAntall");

let antall = 0;

function tellOpp() {
// antall = antall + 1;

antall++;

txtAntall.innerText = antall;
}

document.onclick = tellOpp;
Console
index.html
-3:27