Assigning names to values

Rather than type the same values many times in our code, we can give them a name to refer to them. This is called assignment.

  • let for a name we use in one function (local)
  • def for a name we use with several functions (global)

Assignment - let and def


When a name is assigned a value, that name is referred to as a symbol.

results matching ""

    No results matching ""