Pergunta de entrevista da empresa GitLab

Does Javascript pass by value or by reference?