title: Closure inside Function
body: <p><a href="https://i.stack.imgur.com/TQEVV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TQEVV.png" alt="Code snippet"></a></p>
  
  <p>I'm trying to create a calculator using closures and functions. I got until the actual calculation function which takes in two values, then the user can select which operator to use (addition, multiplication, etc). I don't know how to actually return the value of that calculation.</p>