Simple knockout example

HTML

<form>
    <p>First name:<strong data-bind="text: firstName" />
    </p>
    <p>Last name:<strong data-bind="text: lastName" />
    </p>
</form>

JavaScript

// This is a simple *viewmodel* - JavaScript that defines the data and behavior of your UI
function AppViewModel() {
    this.firstName = ko.observable("Bert");
    this.lastName = ko.observable("Bertington");
}

// Activates knockout.js
ko.applyBindings(new AppViewModel());