Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Each time you pass an object into a function by value, a copy of the object is made. Each time you return an object from a function by value, another copy is made.
On Day 5, you learned that these objects are copied onto the stack. Doing so takes time and memory. For small objects, such as the built-in integer values, this is a trivial cost.