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 Alexander_Trutanov
"use strict";
function evenLast(data) {
return data.length ? data.reduce(function(p, c, i) {
return (i % 2 === 0) ? p + c : p;
}) * data[data.length -1] : 0;
}
Feb. 2, 2019