Lesson 1 of 16

Hello, World!

Your First Elixir Program

Elixir uses IO.puts to print output with a newline.

IO.puts("Hello, World!")
  • IO is the built-in input/output module
  • puts stands for "put string" — it prints and adds a newline
  • Strings are enclosed in double quotes

Your Turn

Print Hello, Elixir! to the output.

JS Transpiler loading...
Loading...
Click "Run" to execute your code.