---
title: "Erlang | CoderPad"
description: "Learn more about Erlang from CoderPad."
canonical: "https://coderpad.io/languages/erlang/"
last_modified: "2023-06-06 05:58:21"
---
# Erlang online IDE & code editor for technical interviews

Running Erlang/OTP 24 – IntelliSense is not available

### Experience the Erlang IDE yourself

See just how easy and intuitive CoderPad Interview is to use below.

[Launch the environment](https://embed.coderpad.io/sandbox?question_id=247232&use_question_button)

## Guidelines to use Erlang in this online IDE

You should define the module as “solution” and define and export a method named “start” on it, like so:

```
-module(solution).
-export([start/0]).

start() ->
  io:format("Hello, World").
Code language: Erlang (erlang)
```

If you’d like to write some tests using [`eunit`](http://erlang.org/doc/apps/eunit/chapter.html), you can do so as long as you remember to`include_lib`and invoke your module’s`test`function from your`start`function:

```
-module(solution).
-export([start/0]).
-include_lib("eunit/include/eunit.hrl"). % attach eunit handlers to this module

f(0) -> 1;
f(1) -> 1;
f(N) when N > 1 -> f(N-1) + f(N-2).

f_test() ->
  1 = f(0),
  1 = f(1),
  2 = f(2),
  3 = f(3),
  6 = f(4). % this should fail

start() ->
  test(). % remember to call test from start, or we won't know that we need to run tests!Code language: Erlang (erlang)
```

## Need a better way to interview candidates?

[Request a demo](https://coderpad.io/sales/)
