Passing by Value vs. by Reference

I’ve seen this awesome image shared by many of my friends on social media and it’s such a great way of explaining passing by value vs by reference.

Penjee is the source and they go more in-depth in their tutorial if you’d like to learn move about this.