How do you define constants in Elixir modules? April 1, 2023 by Tarik You can prepend your variable name with @: defmodule MyModule do @my_favorite_number 13 end Here are the docs