Skip to content Skip to sidebar Skip to footer
Showing posts with the label Htmlcollection

What Is The Purpose Of Calling Array.prototype.slice Against A Nodelist?

I was looking up how to iterate NodeLists and I came across the following bit of code. var nodesArr… Read more What Is The Purpose Of Calling Array.prototype.slice Against A Nodelist?

Change Data-attribute On Click Of HTML Elements

I am trying to apply changes to the DOM when a is clicked. When clicked, it should add data-state=… Read more Change Data-attribute On Click Of HTML Elements