title: Javascript - add parameters to a function passed as a parameter
body: <p>Here is the behaviour I'm looking for:</p>
  
  <pre><code>function one(func){
     func(5);
  }
  
  function two(arg1, arg2){
     console.log(arg1);
     console.log(arg2);
  }
  
  one(two(3)) //prints 3, 5
  </code></pre>
  
  <p>Can this behaviour or something similar be accomplished in javascript?</p>