The opposite of a constant is a variable. Variables can change or have the potential to change. The color of a bus, the position of a person, the current room temperature-these are all examples of variables, or quantities that change. So, a variable is a quantity that, unlike a constant, has the potential to change throughout the duration of a program.