var arr = [a, b, c];
In this specific array setup, index 0 corresponds to "a", index 1 corresponds to "b", index 2 corresponds to "c".
console.log(arr[0]) // will output > "a"
console.log(arr[1]) // will output > "b"
console.log(arr[2]) // will output > "c"
Is there a method by which if I call console.log(arr[3])
it would display "a"
again, console.log(arr[4])
would show "b"
, and so on. For example, calling console.log(arr[42])
should give any of the three string values while following the same pattern.