Fix the code so that the list of elements that end with "e".
// //Q2: Create a list of elements that end with the letter "e"
// //Hint: The last index item is always length-1
var nameElementE = [];
for (var i = 0; i < nameElement.length; i++) {
if (nameElement[i].substring(0,1)=="E"){
appendItem(nameElementE, nameElement[i]);
}
}
console.log(nameElementE);
// //Console.log out your final list