# Interactive Elixir Session(IEx)

Elixir's Interactive shell.

Now that you have installed Elixir on your system, it's imperative that you know about the Elixir's Interactive shell(IEx). If you haven't installed Elixir follow this Elixir Installation. Most scripting languages have a shell environment where you can test and write little scripts, for Example the console environment in the browser is a shell to write and run javascript codes, Python uses an IDLE( Integrated Development and Learning Environment). Elixir also have its shell environment called IEx. To interact with this environment, open your terminal and enter this code iex you should get this output

$ iex

Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Interactive Elixir (1.10.2) - press Ctrl+C to exit (type h() ENTER for help)

if you don't get that output, it could probably be because you haven't installed Elixir on your machine, follow the link Elixir Installation to install elixir or feel free to contact me @dev_olly.

# Playing with IEx.

input anything on the IEx and see the results it gives

iex(1)> 1 + 7
iex(2)> IO.puts "Hello world"
Hello world
iex(3)> 10 * 67

# Helpers

Enter h in IEx, and check out the output.

 Results of Helper function

thats a helper function to find about any in-built function or data type in Elixir, the number following the slash is the number of arguments the function expects.

Enter h(String)

iex(2)> h(String)

check the results

The result contains every nitty gritty of Strings in Elixir. You can use that to check and confirm every function.

The IEx can also be configured or customized..

visit this link to know more about IEx

IEx Docs

Thanks for reading.1

More from SoftNexus