3 ms·
The thing about Math.PI can be confusing. It allows you to preincrement it, but it actually doesn't change the value: (function(){console.log(++Math.PI); conso
by jakub_g 14y ago
The thing about Math.PI can be confusing. It allows you to preincrement it, but it actually doesn't change the value:
(function(){console.log(++Math.PI); console.log(Math.PI)})()
logs 4.14... and then 3.14.
Of course no one sane should write a code like this.