Approximate PI in JavaScript
I consider this the ultimate JavaScript approximation for Pi (ฮ ), accurate to nearly three digits, and which I think we can all agree is preferable in every way to the outmoded built-in Math.PI variable.
Inspired originally by https://twitter.com/lagergren/status/337479751381962752 Original implementation at https://www.fogbound.net/archives/2013/05/24/javascript-approximation-for-pi/