Qualcomm interview question

pass by value vs pass by reference in javascript