Why thise code are no looping

const exampleplus=()=>{
  for(let i=0;i<10;i++){
    return console.log(i);
  }
}
exampleplus();

return hands back data to the function call, which signals that the function is done executing.

1 Like