If for example I have two lists of numbers and letters.
var arrayletras = ["a","b","c","d","e"];
var arrayNum = [1,2,3,4];
arrayletras.forEach(function (valLetras) {
console.log(valLetras+": ");
arrayNum.forEach(function (valNum) {
setTimeout(function () {
console.log(valNum);
},1000)
})
})
I want to show a letter first and then all the numbers. I have read about callbacks and promises, but I have not just solved this problem