xxxxxxxxxx
Hand over the responsibility for a particular task to another class or method.
It is a technique where an object expresses certain behavior to the outside but in reality delegates responsibility for implementing that behaviour to an associated object.
xxxxxxxxxx
songsContainer.addEventListener("click",function(evt) {
if(evt.target.classList.contains("song__like")){
evt.target.classList.toggle("song__like_active");
}
});