const birds = [ “Parrots”, “Falcons”, “Eagles”, “Emus”, “Caracaras”, “Egrets” ];
// Add your code here
let animal= birds.indexOf("Eagles");
birds.splice(animal, 1);
let newArray = [];
for (bird of birds) {
let i = 0;
if (birds[i].startsWith("E")) {
newArray.push(birds[i]);
i++;
}
};
// Don’t edit the code below here!
section.innerHTML = ’ ';
const para1 = document.createElement(‘p’);
para1.textContent = eBirds;
section.appendChild(para1);