- What is a variable?
A variable is a basic building block for programming languages, which is used to store run-time values that can be referenced multiple times in the application. - Why do we need variables?
Variables are great for storing information you need multiple times. In this case, if you need to change the information, it's a single operation (in the case of a constant). In the case of a real variable, it allows us to reference run-time information in the program.
Lastly, proper variable naming allow us to grant extra context to our script, increasing readability.
- What is a constant?
A constant is a special type of variable, since its value is determined is fixed and used throughout the script. Normal variables are often mutated multiple times during execution. - Why are naming conventions especially important for variables?
Bash allows us to name our variables...