Introduction
Default values give variables a starting value automatically when you don't set one yourself. This helps avoid errors and keeps your program stable.
When you declare a variable but don't assign a value right away.
When you want to know what value a variable has before you change it.
When you create arrays or objects and want their elements to have initial values.
When you want to avoid unexpected behavior from uninitialized variables.