An ordered set of instructions. It reads input, follows rules, and produces output.
Loading...
Loading...
Workspace
fault tolerant services real time systems and functional APIs
Definition first
Elixir is a programming language for writing exact instructions, often used for fault tolerant services real time systems and functional APIs. Start with one mental model: input goes through steps and becomes output.
app.exsRun elixir app.exsHabit Transform data through pipes and keep pattern matches explicitAn ordered set of instructions. It reads input, follows rules, and produces output.
A value is data. A variable is the name you use to hold and reuse that data.
A named piece of work. It takes input, does one job, and can return a result.
Elixir is the place that actually runs code from app.exs.
First readable code
IO.puts(42)
Output 42Language lineage
See where Elixir comes from, which languages feel close, and what to learn next.
Zero base path
Question bank
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Elixir question 1. Choose the statement that matches printing a value.
Elixir question 2. Choose the statement that matches naming a value.
Elixir question 3. Choose the statement that matches reusable function.
Elixir question 4. Choose the statement that matches basic collection.
Elixir question 5. Choose the statement that matches printing a value.
Elixir question 6. Choose the statement that matches naming a value.
Elixir question 7. Choose the statement that matches reusable function.
Elixir question 8. Choose the statement that matches basic collection.
Elixir question 9. Choose the statement that matches printing a value.
Elixir question 10. Choose the statement that matches naming a value.
Elixir question 11. Choose the statement that matches reusable function.
Elixir question 12. Choose the statement that matches basic collection.
Elixir question 13. Choose the statement that matches printing a value.
Elixir question 14. Choose the statement that matches naming a value.
Elixir question 15. Choose the statement that matches reusable function.
Elixir question 16. Choose the statement that matches basic collection.
Elixir question 17. Choose the statement that matches printing a value.
Elixir question 18. Choose the statement that matches naming a value.
Multiple choice
Elixir question 1. Choose the statement that matches printing a value.
IO.puts(42)
Reference
elixir app.exsentry point output syntax IO.puts
IO.puts(42)
variables assignment types =
total = 42 IO.puts(total)
function collection List
defmodule MathBox do def add(a, b), do: a + b end scores = [40, 2] IO.puts(length(scores))