First name:

Last name:

Full name:

Friends ()

CodeForm   FriendsForm  mouseOver   mouseOut
Planets   GiftBasic   GiftAjaxSave  extender
Below is declaring a Knockout ViewModel on the Heap rather than the Stack as in the code. It is a convience to instantiate the ko.observable() Brad Wilson - Web Stack Of Love uses the method above. He goes on to show a WebApi (see App_Start directory).
<p data-bind="text: firstName"></p>
<p data-bind="text: lastName"></p>
<input type="text" data-bind="value: firstName" />
<input type="text" data-bind="value: lastName" />

<script type="text/javascript" src="../Scripts/knockout-3.1.0.js"></script>
<script type="text/javascript">

    var KOviewModel = function () {
        var self = this;
        self.firstName = ko.observable("Bert");
        self.lastName  = ko.observable("Smith");
    var viewModel = new KOviewModel();