scrimba
Frontend Career Path
Making websites interactive
Passenger counter
Let's build a passenger counter app!
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

Let's build a passenger counter app!
AboutCommentsNotes
Let's build a passenger counter app!
Expand for more info
index.js
run
preview
console
let count = 0
let saveEl = document.getElementById("save-el")
let countEl = document.getElementById("count-el")

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

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

console.log("Let's count people on the subway!")
Console
"Let's count people on the subway!"
,
/index.html
-0:59