Functional JavaScript

@NodeGirlsSydney

@ButenkoMe

What is Functional Programming?

@NodeGirlsSydney

@ButenkoMe

  • FP produces programs by composing mathematical functions and avoids shared state & mutable data
  • It is an essential concept in JavaScript
  • Lisp, Haskell, Erlang, Clojure, Elm, F Sharp etc

Why FP is Cool?

@NodeGirlsSydney

@ButenkoMe

  • Pure functions
  • Avoid side-effects.
  • Simple function composition.
  • Higher order functions
  • Avoids shared state & mutable data

github.com/timoxley/functional-javascript-workshop

@NodeGirlsSydney

@ButenkoMe

1. In Terminal

npm install -g functional-javascript-workshop@latest

2. To start workshop run

functional-javascript

3. To start exercise press Enter

Follow the instructions

@NodeGirlsSydney

@ButenkoMe

Coding Time!

@NodeGirlsSydney

@ButenkoMe

NodeGirls Functional JS

By Tanya Butenko

NodeGirls Functional JS

  • 978