This post was almost entirely inspired by Andreas Karlson's blog post where he details how he created the worst version of an isOdd function ever to visit this land. Andreas's 4 billion if statements cover the whole of 32-bit integers, and ultimately were written in Assembly to avoid compiler limits from C++. Of course, when I saw this post, I wondered, how crippled would a browser be to read a 4 billion if statement WASM program? I started my exploration in a similar way: I attempted to writ...