Use a variable whenever you want to save some information to use later.
Simple variable
Doing math with variables
Saving input from a prompt
Saving input from a confirm