scrimba
Frontend Career Path
Making websites interactive
Passenger counter
Set the count to 0
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

AboutCommentsNotes
Set the count to 0
Expand for more info
index.js
run
preview
console
let saveEl = document.getElementById("save-el")
let countEl = document.getElementById("count-el")
let count = 0

function increment() {
count += 1
countEl.textContent = count
}

function save() {
let countStr = count + " - "
saveEl.textContent += countStr
}

Console
/index.html
-3:41