Data Types Flashcards

1
Q

true

A

boolean value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

false

A

false boolean value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

nil

A

Requests “nothing” or “no value” x = nil

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

strings

A

Stores textual information. x = “hello”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

numbers

A

Stores integers. I = 100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

floats

A

Stores decimals. I = 10.389

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

arrays

A

Stores lists of things

j = [1,2,3,4]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

hashes

A

Stores a key=value mapping of things

e = {‘x’ => 1, ‘y’ => 2}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly