×

ruby · level 1 · unit 2 · lesson 2

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Put something new in a box and the old value is gone.

A box holds one value at a time. Put a new value in and it replaces the old one. This is called : the old value is wiped away for good.

You can copy a value from one box into another. best = snack looks inside snack and puts the same value into best.

To strings together, use +. "Good " + "dog" becomes "Good dog". Ruby never adds spaces for you, so put them inside the quotes yourself.

snack = "crisps"
snack = "apple"
puts snack
puts "My snack: " + snack

Ruby always runs the right side of = first, then puts the answer in the box.