O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

And, rather than managing three different variables to hold the ships, we’ll create a single array variable to hold them all, like this:

image with no caption

From

Cover of Head First JavaScript Programming

Note

How to create multidimensional array?