Variables only hold data. There are 2 types of variables, string and number.
A$ is a string variable.
A is a number variable.
Almost every single program uses variables; wether for stats tracker, know where the player is, count how many enemies are on the screen, etc.
Theres also arrays, which can be defined by DIM[Number of "pages"]
Again like the variable, they can be either number or string. Think of an array as a book. Eg:
BOOK[0]="Hello"
BOOK[1]="This is a test"
Please look up youtube vids about arrays as they are very useful and I'm not a pro at them.
Not "number of pages" but,
DIM A[N] where N equals the number of elements. A[5] holds 5 separate data values. Arrays are useful and much more useful in loops. IE: If you do:
FOR I=0 TO 4
A[I]=RND(10)+1
NEXT
This will access each value in the array, A[0],A[1],A[2],A[3], and A[4]. And assign a random number 1-10 to each one.