This document discusses techniques for unit testing legacy JavaScript code, including characterization tests, separating code from data, passing globals into methods, separating behavior from initialization, and mocking dependencies. It provides examples of refactoring JavaScript code using these techniques. The document also describes an exercise where participants work to write a characterization test for the weapons functionality in a sample codebase called MessTrek.