Follow this official guide - https://elixir-lang.org/install.html
Create the following HelloWorld
module with one function hello
defmodule HelloWorld do
def hello do
IO.puts "Hello Elixir"
end
end
Go to terminal and type
iex helloworld.ex
Execute the function
iex HelloWorld.hello