Itai Edri
1 min readJul 29, 2017

--

Great article! Js is really a hell in the OOP world.

In the `switch case` section, what do you think of just using json?

const mySwitch = { 0: “water freeze”, 50: “hot for shower”, 100: “coffee time” }

And the you could execute `mySwitch[x]`.

At clojure, everything is a function, even a map (json), so the syntax is clearer for this example.

--

--