Frage im Vorstellungsgespräch bei Spear Education

What is the difference between setting variable by value vs setting a variable by reference