// There is an state.
var counter = 1;
function addCounterAndIncreaseIt(num) {
// Output does not depend only on input.
num += counter;
// Has a side effect.
counter++;
return num;
}
var a = addCounterAndIncreaseIt(1);
// a is 2.
// counter is 2.
var b = addCounterAndIncreaseIt(1);
// b is 3.
// counter is 3.
function add(a, b) {
return a + b;
}
var a = add(1, 2);
var b = add(1, 2);
// a is 3.
// b is 3.
An interactive shell that lets you interact with values and functions directly.
Dinamically compiles Elm files on demand and starts a server to test them on the browser.
The Elm compiler.
Generates the HTML or JavaScript output.
Package manager.
Totally not
JAVA
Kind of a JS object
Null, I call it my billion-dollar mistake
Like Redux but without JS
(Also called Flux)