How to print in Elixir

Elixir is a concurrent, functional programming language designed to maintain and scale applications. Today, you will learn how to print to the console in Elixir.

When you are working on a project, printing to the console is the simplest way to debug a problem in your source code. Like any other programming language, printing is an easy task in Elixir.

With Elixir, you have to use the IO module, which is an Elixir device that handles inputs and outputs. With the IO.puts function, you can print to the console.

IO.puts "Hello World"
IO.puts "Hello World"

Want to learn more about Elixir? Check out our, “What are the basic operators in Elixir?”!

Free Resources

Copyright ©2024 Educative, Inc. All rights reserved