// flatten an array without using .flat(); let myArray = ["E", "l", "z", ["e", "r"], "o"]; let reduce = myArray.reduce((ele, acc) => `${ele}${acc}`); // OR acc.concat(el) console.log("Elzero"); // Output Elzero