Data Types Flashcards
Types of data that can be stored in Ruby
1
Q
true
A
True boolean value
2
Q
false
A
False boolean value
3
Q
nil
A
Represents “nothing” or “no value”
4
Q
strings
A
Stores textual information
5
Q
numbers
A
Stores integers
6
Q
floats
A
Stores decimals
7
Q
arrays
A
Stores a list of things
8
Q
hashes
A
Stores a key=value mapping of things