In computer programming, a variable is an identifier (usually a letter, word, or phrase) that is used to identify a value stored in the system's memory. A variable's value can generally be accessed or changed at any time. In contrast constants generally keep the same value they were assigned upon their creation.