All code and examples in three.js are written using Mr.doob's Code Style.
Of course you are free to use whatever style you prefer for your own work, but
if you are adding code to the library or examples then you must follow this guide.
You can find details
here.