title: Please help me in understanding this Recursion Question
body: <p>I am not understanding how this function is working if I have passed array  and value of n as 5 then</p>
  <pre><code>return multiply([1,2,3,4,5],4)*arr[4] 
  </code></pre>
  <p>this is the first line that is going to happen in this function process.</p>
  <p>Can anyone explain me this line.</p>
  <pre><code>function multiply(arr, n) {
  
          if (n &lt;= 0) {
              return 1;
          } else {
              return multiply(arr, n - 1) * arr[n - 1];
          }
      }
      let a = [1, 2, 3, 4, 5];
  //calling function
      multiply(a, 5);
  </code></pre>