Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 558 Bytes

File metadata and controls

26 lines (20 loc) · 558 Bytes

Hello World Program

Let us take our first steps in elixir language by writing a hello world script

IO.puts("Hello World")

Save this to the file hello.exs

Now run the file using following command

$ elixir hello.exs
Hello World
Note

There are two types of extensions that you will find for elixir programs .exs and .ex. .exs files are used for scripting purposes which can be used for testing purposes while .ex files are which are compiled into bytecode as a part of library.