How do I get / answer the callback here?
const arr = ["Lucas"];
function minhaCall(sobrenome, indice) {
return indice + 1 + ") " + sobrenome + " de Carvalho";
}
arr.forEach(minhaCall)
For example, I can not give console.log(arr.forEach(minhaCall))
How would I use the return of this function?