Can anyone help me with this please? I'm currently learning for loops but I can't seem to find what the issue is. It works fine when I do the console.log which is currently commented out. Thank you
const message = function(text){
for (let i = 0; i < text.length; i++){
return text[i];
// console.log(text[i]);
}
}
const runMessage = message([2,6,9]);
console.log(runMessage);