GitLab interview question

Does Javascript pass by value or by reference?