scrimba
Frontend Career Path
Making websites interactive
Passenger counter
Create the save feature
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
Create the save feature
Expand for more info
index.js
run
preview
console
// 1. Grab the save-el paragrah and store it in a variable called saveEl
let countEl = document.getElementById("count-el")
let count = 0

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

function save() {
// 2. Create a variable that contains both the count and the dash separator, i.e. "12 - "
// 3. Render the variable in the saveEl using innerText
// NB: Make sure to not delete the existing content of the paragraph
console.log(count)
}


Console
/index.html
-4:36