function monkeyCount(n) {
for (i=1; i<=n; ++i){
let monkeyArray=[i];
return monkeyArray[i];
}
}
Another rookie question lol. I need to return the values of an entire array using the return statement and not the console.log. If I pass a number such as 5 to the function I need to return 1,2,3,4,5 your help much appreciated:0)