over 1 year ago
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.
1 const arr = [2, 4, 5, 1, 7, 5, 2, 1];
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2022 FindNerd.com. All rights reserved.
Sign up using