Is there some function I can use that lets me check the value of something from an array from just its index number?
For example, say I have an array with the values ["red", "orange", "green", "purple"]
Is there a function that would take an input of 3 and return "green" from the array?