Binding Values in Variables
Learn how to bind values in variables.
We'll cover the following...
Variables
Variables are containers that hold values. Suppose you have a friend who works with office facilities, and they organize the office tools by putting them in boxes. They put a label on boxes to help workers know what’s inside without opening them. Variables are like that; we can’t see what’s inside without checking, but the variable’s name can give us a hint. Let’s create a variable using IEx:
iex> x = 42
#Output -> 42
iex> x
#Output -> 42
IEx shell is present at the end of the lesson to try out the different ...