title: How to combine functions in another FP?
body: <p>I am learning function programming in JavaScript, currently I have the following code.</p>
  
  <p>I would like to combine this two functions in another function which alllow an user to pass a value in and having the result equal to the value passed plus 10 multiply 3 using the following functions.</p>
  
  <p>Pseudo code example:</p>
  
  <pre><code> const myFormulat= add(10).multiply(3);
  </code></pre>
  
  <p>How can I write this function using only vanilla JS ES6? </p>
  
  <pre><code>function add(x){
    return function(y){
      return y + x;
    };
  }
  
  function multiply(x){
    return function(y){
      return y * x;
    };
  }
  
  // my calculation
  // get x add 10 and after multiply by 3
  </code></pre>