I have a script that work perfectly on Chrome Firefox and Edge but not on IE.
The error I have is : Unexpected token var clearContent = () => { Whys is it an error fir internet explorer but not for the others brower.
var clearContent = () => {
var allDistricts = document.querySelectorAll(".district");
allDistricts.forEach(item => {
item.style.display = "none";
});
Thanks for help