JavaScript JavaScript and the DOM Making Changes to the DOM Getting and Setting Text with textContent and innerHTML

Change list description's button doesn't work, my code is exactly the same as in the video

i spend so much time on this, first i thought it was sublime text then i try in the treehouse text editor, it still doesn't work, please help

here is the snapshot: https://w.trhou.se/sa59cfqz32

2 Answers

Thomas Dimnet
Thomas Dimnet
Full Stack JavaScript Techdegree Graduate 37,277 Points

Hi Dalin,

I saw what's wrong in your code. Inside the app.js file, when you add an event listener you wrote 'Click' instead of 'click'.

That being said if you write the code below, it will work

button.addEventListener('click', ()

it worked, thank you so much