Introduction
Default values give a starting value to variables when you don't set one yourself. This helps avoid errors from using empty or unknown data.
When you declare a variable but don't assign a value yet.
When you want to reset a variable to its original state.
When creating arrays or lists and you want all elements to start with a known value.
When writing functions that return a default value if no input is given.
When working with structs or classes and you want to know their initial values.