Ruby Tutorial

Ruby Data Types

Data Types

Ruby includes several built-in types you will use in every program.

  • String
  • Integer
  • Float
  • Symbol
  • Array
  • Hash
user = { name: "Alex", score: 95 }
puts user[:name]
Try it Yourself
Run this RUBY example in your local environment or course sandbox.