1 array = [1, 2, 3]
2 reversed = array[::-1] # [3, 2, 1]
1 const arr = ["Hello", "World", "!"];
2 let index = Math.floor(Math.random() * arr.length);
3 arr[index] // random element
1 const uniqueArray = [...new Set([1, 2, 2, 3, 3, 3])] // [ 1, 2, 3 ]
1 array = [1, 1, 2, 2, 2, 3]
2 max(set(array), key=array.count) # 2