title: pass array as function parameter in javascript
body: <p>I encountered an error while coding in javascript. I want to pass an array as a function parameter from main function to another function, do operations in function and the return edited array. </p>
  
  <p>However, as far as I understood, when I di\o this 
  <code>var1 = function_1(var2)</code> where <code>var2</code> is an array, it doesn't actually pass the array to a function. </p>
  
  <p>I want to do this with standard JavaScript library.</p>
  
  <p>Thank you in advance.</p>