var arr = [a, b, c];
In above array, index 0 contains "a", index 1 contains "b", index 2 contains "c".
console.log(arr[0]) // will print > "a"
console.log(arr[1]) // will print > "b"
console.log(arr[2]) // will print > "b"
Is there a way so that if I want to console.log(arr[3]) then it should print "a" again, console.log(arr[4]) would be "b" and so on. If we want an index of let's say 42 like this console.log(arr[42]) then it should print any of those three string values by following the same pattern.