Erlang comes with an interactive shell where you can try out your Erlang code. There are some differences compared to writing Erlang code in a file and compiling it; most notably you can't define functions in the shell, only assign anonymous functions to variables.