Ruby, in your browser

Ruby Playground

Learn Ruby by working with code.

Start with values →

Browse the Ruby skill tree →

Try a lesson

Available now · Foundations

Values

Predict calculations and explore numbers, strings, symbols, booleans, and nil. Six editable examples introduce Ruby without programming prerequisites.

A place to learn and return to

New to Ruby? Start with the values lesson and explore at your own pace. Use the skill tree to find the foundations for later topics.

Already use Ruby? Revisit how familiar code works. Future lessons are planned to cover language developments with examples tied to specific Ruby versions.

How to practice

  1. Predict. Before pressing Run, write down the output you expect.
  2. Run and change. Compare the result with your prediction. Change one thing and try again.
  3. Explain. Describe why the code behaves that way. Use the answer to check your reasoning.

This approach is influenced by Justin Skycak's Advice on Upskilling, especially its emphasis on active practice and foundations.