With your original code, line 14:
deerStatus[deerIndex] = "awake"
Since you are iterating through friends, using deerIndex as your counter, you want to use deerIndex as the reference for the proper deerStatus element.
With your original code, line 14:
deerStatus[deerIndex] = "awake"
Since you are iterating through friends, using deerIndex as your counter, you want to use deerIndex as the reference for the proper deerStatus element.
Thank you!!! It finally worked!!!
You are most welcome…but, do you understand the concept and why it worked? That was the whole point to all this!
Yeah. I had to loop through the array.