title: onchange javascript variable
body: <p>Is there a way to call a JavaScript function if a javascript variable changes values using jQuery?</p>
  <p>Something to the extend of -</p>
  <pre class="lang-js prettyprint-override"><code>var test = 1;
  test = 2; // calls a javascript function
  test = 3; // calls a javascript function
  </code></pre>
  <p>This way I wouldn't have to add an onchange event to so many different functions.</p>