title: How does function with no parameter works, while i'm passing arguments
body: <pre><code>function calculateAmount(p,r,t)
  {
    function calculateSimpleInterest()
    {
      return (p*r*t)/100;
    }
    return p+calculateSimpleInterest(p,r,t);
  }
  console.log(calculateAmount(1000,10,2));
  </code></pre>
  
  <p>hey folks the above code executed successfully, but a newbie like me it still create a a lot of confusion.</p>