jeudi 21 octobre 2021

IE does not support arrow(=>) [duplicate]

this is my code:

 function LoadDate() {
    document.querySelectorAll('[display-date]').forEach(el => el.innerHTML = getTheDate());
    }

It is not working on IE because of this arrow (el => ) as I understand from my last question .. how can I convert it to be supported in all browsers?

Thanks for your time ^_^

Aucun commentaire:

Enregistrer un commentaire