Declares an anonymous function that is immediately invoked. It parameters are passed this array and number of
185recorded in 16 we used the hexadecimal system
Inside of a function declares another function
e(f), pending an integer parameter f.
The while loop runs while this is the f-number reaches zero, decreasing by 1 on each iteration.
Inside the loop it calls a method of the array
push()which will insert in the end of the array value. The properties and methods of an object can be accessed through the point of
myArray.push() and square brackets by passing a string with the name of the property or method:
Is inserted into the array the value taken out of it from the beginning. It is picked out of the array method
shift() is written as a string in square brackets.
Calls the function
e() with the number 185, is increased by 1, i.e., 186. In the loop this number is reduced first by 1, and then evaluated to see if it is equal to zero. If you haven't been, it runs the loop body. So the body of loop will be executed times 185: 185, 184, 183, 2 ... and 1.
The whole structure will move the contents of the array for some number of positions, depending on its length.