Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 451 Bytes

File metadata and controls

13 lines (8 loc) · 451 Bytes

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


Info::

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