JSFiddle - React, Tailwind, and code Playground

JavaScript

var oleg = ["A","B","C","E"]; //representative. imagine that arr holds all 26
var joseph = ["Snap","Crackle","Pop","Taco"];

//write a function that returns a string of every other letter
function everyOtherLetter(rene) {  
    console.log(rene)
    var count = "";
    for(var i = 0, len = rene.length; i < len; i = i + 1) {
        count = count + rene[i];
        console.log(count)
    }
    return count;
}

everyOtherLetter(oleg);
everyOtherLetter(joseph);