The type of a variable is the format or range of data going into the variable. When variables are used in programming, their types must be declared in advance.
The kind of type depends on the programming language. Examples of variable types include integer, float, and string.