Data types in Ruby
When we're creating a variable in Ruby, we're also assigning a data type to it. For example, when we write something like this: car = "Tesla" We're actually telling our program to create a varia
How to declare variables in Ruby
Variables are values you can declare to use later. For example, let's say we want to save someone's name in our program. We can do it by declaring a new variable: name = "Nikola Tesla" In the exa
What's the difference between variables and constants in Ruby?
Constants are variables whose name start with an uppercase letter: NAME = "Leonardo da Vinci" Different from variables, however, constants are not meant to be changed. When you try to assign a ne