Ruby

FeLiX Leonard
FeLiX Leonard
847 Points

does anyone know how to make a variable?

I forgot how.

1 Answer

Everett Caldwell
Everett Caldwell
4,627 Points

Hi Felix,

There are a few ways to declare variables in different programming languages. In Ruby, a global variables begins with $, and has a dynamic type by the value assigned. For instance, $variable = 10, will be an integer. Then there are instance variables, which are declared with an @. Here is some more detail about ruby variables.

Cheers, Everett.