title: Breaking dependencies in JavaScript
body: <p>When I have several chained functions that take arguments and return values in JS, what is this dependency called and how can I break it?</p>
  
  <p>Example</p>
  
  <pre><code>function a (arg1){
    return res1;
  }
  
  function b (arg2){
    function a(arg1);
    return res2;
  }
  
  function c (arg3){
    function b(arg2);
    return res3;
  }
  
  c(arg3);
  </code></pre>