JavaScript arrays: how they work and common methods
A JavaScript array allows us to group related data like product names, user IDs, log entries, cart items, or API results. Arrays play a vital role in all kinds of user functions, from shopping carts to game scores. However the sheer flexibility of JavaScript arrays can also cause mistakes around mutation, copying, sorting, and searching. Soo we’ve put together this post to show you.