Is there an order of operations of sort when de-constructing or constructing arrays?
Example: I have a n array with eight numbers. I want to .shift( ) the the first number in index "0" then .splice( ) the last five numbers.
So, my questions is, does the .shift( ) occur first and then the .splice( ) and should I start the index position after result of the .shift( )? I hope this makes sense. Thank you.
0 Answer(s)