+ Skip to Content

Array Link

: Using 2D arrays to represent the grid of pixels in a digital photo. Leaderboards : Keeping track of scores in a game.

: Most languages start counting at 0. To access the first item, you use index 0 , the second use 1 , and so on. Fixed vs. Dynamic Size : : Using 2D arrays to represent the grid

If you are working in web development, mastering these methods is a "Swiss Army knife" for your code: you use index 0

According to guides from developers on Medium and DEV Community , these are the most common ways to interact with arrays: the second use 1