Key Takeaways
Get a recap of all the concepts learned in this chapter.
We'll cover the following...
We'll cover the following...
We should use const functions regularly when a function doesn’t intend to change the underlying object. Making certain functions const is meaningful because:
constfunctions help the compiler to perform optimization.constfunctions clarify the intentions of the developerconstfunctions prevent accidental modifications of the underlying object