Data types are the ways to represent the kind of data that you can use in a programming language. Syntax is how we differentiate between data types.
-
String: used to represent text; use quotes to contain the string
- Alphabetic Characters
- Spaces
- Numbers
- Special Characters
-
Integer: whole numbers that can be positive, negative, or zero
-
Float: numbers containing decimals
-
Boolean: a value that is either true or false
-
Array: a data structure that represents a group of things
-
usually within brackets
-
use strings within quotes inside brackets
Data types are defined using the term
variable
orvar
. For example:var iceCream = "Chocolate"
-