scrimba
Learn JavaScript
Chrome Extension
Create the unordered list
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

Create the unordered list
AboutCommentsNotes
Create the unordered list
Expand for more info
index.js
run
preview
console
let myLeads = ["www.awesomelead.com", "www.epiclead.com", "www.greatlead.com"]
const inputEl = document.getElementById("input-el")
const inputBtn = document.getElementById("input-btn")
// 2. Grab the unordered list and store it in a const variable called ulEl

inputBtn.addEventListener("click", function() {
myLeads.push(inputEl.value)
console.log(myLeads)
})


for (let i = 0; i < myLeads.length; i++) {
console.log(myLeads[i])
}



Console
"www.awesomelead.com"
,
"www.epiclead.com"
,
"www.greatlead.com"
,
/index.html
-1:55