Introduction
Short variable declaration lets you quickly create and set a variable without writing its type. It makes your code shorter and easier to read.
When you want to create a new variable and assign a value in one step.
When the type of the variable can be guessed from the value you give it.
When writing simple functions or small blocks of code where brevity helps.
When you want to avoid repeating the type name to keep code clean.