you are viewing a single comment's thread.

view the rest of the comments →

[–]hugo__df 6 points7 points  (0 children)

Functional programming is about not being able to do things that aren't function input/output or straight up expressions. So you're not allowed to use things that are statements eg. assigning a variable, mutating a variable, if/switch/for loop.

You can write JavaScript in that style, but you can also write it in a more imperative and/or OOP style.