News for hackers. Stuff that matters.
Re:Are You a JavaScript Guru? Try This Test by jakub_g on Saturday February 02, 2013 @02:17PM (#5156957)
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.

There are no comments on this comment yet.