Assessment needed for array 4

Here is my solution of **test your array skills ** array 4

const birds = [ “Parrots”, “Falcons”, “Eagles”, “Emus”, “Caracaras”, “Egrets” ];

const index = birds.indexOf(‘Eagles’)

if (index !== -1){

birds.splice(index , 1)

}

function eStarter(birds) {

return birds.startsWith('E')

}

const eBirds = birds.filter(eStarter);
what do you thing?

Hi @iidlex99 and welcome to the community :wave:

You did a very good job. :+1: Congratulations!
As far as I see everything is correct.

By the way, if you plan on doing more tasks it would be helpful if you could share your code in an online editor like https://codepen.io/, https://glitch.com or https://jsfiddle.net/. It’s much easier for us if we can see the code run and test things out if necessary. Also the forum removes and changes certain code automatically. Thank you :blush:

Have a nice day,
Michael

thanks, I will post my code in online codeEditors next time

1 Like