Because the page where I want to insert the following line of code, how can I replace the arrow function so that I can run in the ES5 version?
const frutas = ["Banana", "Orange", "Apple", "Mango","Orange"];
const contarFrutas = (valor, listaDeFrutas) => (
listaDeFrutas.filter(fruta => fruta === valor).length
);
console.log(
contarFrutas('Banana', frutas)
);
console.log(
contarFrutas('Orange', frutas)
);