-
Strings. Strings are some of the easiest data types. The only thing you need to do to indicate something is a string data type in Ruby is put it between quotes, either double (" ") or single quotes (' ').
-
Integers. Or numbers, these are indicated in Ruby by just typing the number (not spelled out).
-
Arrays. Arrays are nice, they allow you to tell Ruby that what follows is a list of elements I want to possibly manipulate later. I'll give two different examples of arrays;
- Numbered arrays: [1, 2, 3, 4]