Download to read offline





















This document discusses testing JavaScript code using test-driven development (TDD) principles with MVVM and Knockout.js. It introduces TDD and its importance in preventing failures from changes. Model-view-viewmodel (MVVM) patterns are demonstrated as better for testing than directly linking models and views. Knockout.js is presented as a binding mechanism between MVVM components. The document concludes by introducing the jasmine testing framework for implementing TDD with JavaScript code.