- Use: used to represent text data
- Denoted by ' ' or " " marks.
- example:
"Peach"
or"(303)555-5555"
or"colorless green ideas sleep furiously"
- Use: used to represent whole number data
- Can be +, -, or 0 & manipulated mathematically
- example:
1
or1,375
- Use: used to represent decimal point/fractional data
- Can be + or - & manipulated mathematically
- example:
3.141592
or-0.00001
- Use: either True or False
- You can think of this like a light switch
// Useful symbols when working with type of data include: && || and ==
- example:
True
orFalse
- Use: data structure that represents a group of things
- Typically, data within an array are all the same type
- example:
["The Shining", "It", "Pet Sematary", "Dr. Sleep"]
or[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]
- Use: used to represent a key-value pair of data.
- Similar to an array, except we are pairing data together
- example:
{"March": 58, "April": 65, "May": 73}