0
There was a typo inside your JavaScript you were listening event on butns array not on each element of that array so I changed it to btn.addEventListener and it should be let action=this.dataset.action instead of let action=this.dataser.action Here is working example let butns=document.getE...