= (binding)
Try it yourself →Binds a value to a name.
Syntax
name = value
Description
= binds a value to a name (matching, not assignment). Data is immutable; you can rebind the name to a new value.
Example
name = "Elixir" score = 10 score = 20 IO.puts(name) IO.puts(score)
Expected output
Elixir 20
When to use?
General-purpose value binding.