pass by reference VS. pass by value: Which One Should You Use in Your Code?
Two ways to save data in programming
When you put data into the variable, the programming language has 2 choices to save the data.
Save data into heap memory and then keep the address of the memory in the stack memory.
save data into stack memory.
...
eunhanlee.hashnode.dev3 min read