I offered to coach JavaScript recently, and an exercise I dreamt up was to implement every array (prototype) method, and write tests that they work. Since I'd come down with tonsillitis which apparently comes with a full on bedridden fever, I thought I'd have a go myself. And I learnt a few things along the way. Today, I wanted to share the swiss cheese wonder of sparse arrays! (see what I did the
![An adventure in sparse arrays](https://cdn-ak-scissors.b.st-hatena.com/image/square/3a7a75aed7b092b5f8fb3ec4152bb367215d8182/height=288;version=1;width=512/https%3A%2F%2Fremysharp.com%2Fimages%2Fadventures-in-arrays.png)