September 22, 2014 at 1:40 pm #184155
First and most importantly, how does the JS know to run when a button is clicked, there is no trigger in the HTML.
This line stores the target in the variable
var comments = document.getElementById('comments');
Event listener is attached to listen to any clicks, then it just runs the
Hope that helps,