simple answer to this :
const btnImg = btn.querySelector("img"); const imgAlt = btnImg.alt; console.log(imgAlt);