being new to knockout could some tell me the differences and adavntages of using the view model in these two ways I see frequently:
var viewModel = {
//code
}
or
var viewModel = function() {
//code
}
With the second I see it often but arent ko observables functions any ways?