dft=["t", "h", "i", "s", "I", "s", "S", "p", "i", "n", "a", "l", "T", "a", "p"];
ans=[4, 6, 12, -1];
for(x=0;x<ans-1;x++){
dft.splice(ans[x],0,"-");}
return dft;
我試圖返回一個數組返回拼接陣列放置到使用索引除了-1指數俺們陣列中的DFT陣列。 [「t」,「h」,「i」,「s」,「I」,「s」,「S」,「p」,「i」,「n」,「一」, 「L」, 「T」, 「A」, 「p」]我如何使用多個指標從不同陣列
this is the codepen i am working on