let warriorsList = [];
warriorsList[0] = "Stephen Curry";
warriorsList[1] = "Andre Iguodala";
warriorsList[2] = "Klay Thompson";
warriorsList[3] = "Andrew Bogut";
warriorsList[4] = "David Lee";
function playerStats() {
return warriorsList[0];
}
console.log(warriorsList[0]);
Where should I place the return statement in my function?
I also want to assign a number to each player, such as Curry being #30. How can I achieve this within the function? Thanks!