Variables hold data. The data is categorized by data type.
When to use
Knowing the type of data something is, makes using variables easier.
There are several types of data:
String - words and letters surrounded by quotation marks
Integer - whole numbers
Float - decimal numbers
Boolean - true or false
Arrays - a variable that contains multiple values (more on this in a later lesson)
Object - stores data and information on how to process the data
NULL - nothing
Hints & tips
- Data goes into variables
- There are several data types
Lesson notes are only available for subscribers.