Skip to content
Hello, World
step 1/5

Reading — step 1 of 5

Learn

~1 min readGetting Started

Elixir runs on the Erlang VM (BEAM) and inherits its concurrency model. The syntax is friendlier than Erlang's, but the same processes-and-messages soul is underneath.

IO.puts "Hello, World!"
IO.puts("with optional parens")
IO.inspect([1, 2, 3])   # for debugging — prints inspected form

IO.puts writes a line to stdout. Parens around args are optional in Elixir; we'll mostly include them for clarity.

Elixir is functional — functions are pure(ish), data is immutable, and you compose programs by transforming values rather than mutating them. It's also dynamically typed; types are checked at runtime.

Discussion

Ask a question, share an insight, or help someone who’s stuck.

Sign in to post a comment or reply.

Loading…