I need to change array to a new array created inside a function.
function changeArr(a)
{
    a=["hello"];    // don't work
    //a.push("hello");    //works, but the real array pretty big (dont want copy)
}
var arr=[];
changeArr(arr);
console.log(arr); // should echo ["hello"]
 
     
     
     
    