title: KnockoutJS - checkbox on check and computed function
body: <p>I'm quite new in <code>KnockoutJS</code> and I have a 'simple' question - everytime I click on <code>checkbox</code> or <code>label</code> I see <code>1</code> in the console. But how exacly <code>changeCheck</code> 'knows' when it should be invoked ?</p>
  
  <p>Is just <code>return self.check();</code> informs <code>knockoutJS</code> to invoke <code>changeCheck</code> when <code>check</code> is changed ? I don't get it. Can somebody explain it for me, please ?</p>
  
  <pre><code>self.check = ko.observable(false);
  
  self.changeCheck = ko.computed(function () {
      console.log(1);
      return self.check();
  });
  
  &lt;input type="checkbox" id="myCB" data-bind="checked: check" /&gt;
  &lt;label for="myCB"&gt;lorem&lt;/label&gt;
  </code></pre>