Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Even the Last by ZoltanOnody
"use strict";
const evenLast = (data) => {
let sum = 0;
for(let i=0; i < data.length; i+=2)
sum += data[i];
return sum * data[data.length-1] || 0;
}
July 20, 2016
Comments: