title: How , internally, each array element is getting passed to the callback function used inside the "map" function in javascript
body: <p>How , internally, each array element is getting passed to the callback function used inside the "map" function in javascript.</p>
  
  <pre><code>incrementByOne = function (element) {
       return element + 1;
     }
  
  myArray = [1,2,3,4];
  
  myArray.map(incrementByOne); // returns [2,3,4,5]
  </code></pre>
  
  <p>In the above code , we are passing the callback function "incrementByOne" to the "map" function. But I am curious to know that how the function "incrementByOne" gets each array element as its parameter. I know that we are using dot operator with mayArray to call map function , but how it makes the callback function possible to accept each array element as its parameter.</p>