Reading a number like 1000000000000 on a line of code may be a breeze for your computer but is next to impossible for a human to do without getting a headache or nose bleed. What can we do to make large numbers more readable to the human eye?
TypeScript
A collection of 8 posts
Using Math on BigInt
BigInt is a relatively new addition to JavaScript and many aren't familiar with it. This was my case until recently. While working on the Closest Number puzzle on condingame.com, I found myself having to deal with numbers of sizes as big as 10^1000.
Accessing items in 2D Arrays
Accessing items in a 2D array can sometimes be a pain. I have created an Array2D class that extends Array and eases some of that pain.