>>the function can be a little more
>>flexible, in that it can allow you to refer to properties of the
>>object during construction.
Yes, I've noticed that and it is awkward to have to declare the
viewModel and then have to append functions to it using
viewModel.fullName = ... because the viewModel variable isn't
completed by the compiler by the time it's being used in a function
within the viewModel (or at least this is how I explain it to
myself).
I'll have to contemplate why functions behave differently...
Your answer helps me get a better undersanding of JavaScript...
Thanks, Chris, for taking the time.