Simple code example to go with my talk on High Quality JavaScript Code

Module pattern
Documentation autogeneration with YUIDoc
Static Code Analysis with JSHint
Unit Testing with Jasmine
Code Coverage Reports with Istanbul
Cyclomatic Complexity Reports with complexityReport.js