problem 1
-create a new empty array where you will store all elements that start with ‘e’
-Use the array.forEach() method , array.map() method or for…of loop to cycle through every element in the array.
-For every element, check whether the first character in the string is equal to the first letter (you can first convert to upper/lowercase depending on whether you like it to be case sensitive or not), then push to the array above if true.
In task 2 the reason why your code doesn’t work is because you can’t directly assign to item. You would need to do something like that:
myArray[index] = `${item} (${index})`
Have a nice day,
Michael
PS: @steviesteve Your email address is visible in your post. I think it somehow ended up in the optional “name” field of your profile. I recommend removing it.