Difficulty: Beginner
Estimated Time: 10 minutes

This playground provides a personalised sandboxed environment for you to learn and explore Elixir.

What are playgrounds?

Playgrounds give you a configured environment to start playing and exploring using an unstructured learning approach.

Playgrounds are great for experimenting and trying samples. To learn more about the technology then start with one of our labs

Thank you for trying the playground. More courses and scenarios are available at on our homepage

Don’t stop now! The next scenario will take about 20 minutes to complete. You can pause and come back at any time.

Elixir Language Playground

Hello World

Copy the following code into the editor.

defmodule Example do
  def hello do
    IO.puts "Hello World"
  end
end

Launch the REPL via iex

Load the module with c("code.ex").

You can now call your function Example.hello

Interested in writing your own Elixir scenarios and demos? Visit www.katacoda.com/teach

code.ex