scrimba
Learn JavaScript
Chrome Extension
Render the leads in 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

Render the leads in the unordered list
AboutCommentsNotes
Render the leads in 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")
const ulEl = document.getElementById("ul-el")

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

// Render the leads in the unordered list using ulEl.textContent
for (let i = 0; i < myLeads.length; i++) {
console.log(myLeads[i])
}



Console
"www.awesomelead.com"
,
"www.epiclead.com"
,
"www.greatlead.com"
,
/index.html
-3:41