Introduction
What is a variable?
What is a variable and what does it do? Variables are used by your computer to store information and come in many types.
All variables have a common declaration method:
type name;
Type refers to what kind of data the variable can store. Name is what you call your variable.
you can also use the extended declaration to include data (numbers, text etc.)
type name = data;
Last updated
Was this helpful?