are javascript arrays passed by reference?
In Javascript objects and arrays follows pass by reference. so if we are passing object or array as an argument to the method, then there is a possibility that value of the object can change.