let leadTracker = ["bbboo","hjkku","hhythjm"];
console.log(leadTracker)
let inputText = document.getElementById("input-text");
let inputButton = document.getElementById("input-button");
let Listing = document.getElementById("listings");
function clicker() {
leadTracker.push(inputText.value);
for(let i = 0; i < leadTracker.length; i++) {
Listing.innerHTML += "<li>" + leadTracker[i] + "</li>";
}
}
just practicing a fw things on javascript but i seem to be having an issue with adding an unordered list to my html from JS. so basically the list is added but an addition li element is added anytime i try to open it on my browser. I have cosole.logged leadTracker and get that my array length is 3. Please what can I do?