JSFiddle - React, Tailwind, and code Playground

JavaScript

data = {"lc_qte" : {"a":"test",
"b":"test2",
"c":"test3",
"d":"test4"}};
 
 
var lc = ["a", "b", "c", "d"];

function test(e,i,a){
    console.log(data.lc_qte[e]);
}

lc.forEach(test);