O'Reilly logo
  • Luis Crespo thinks this is interesting:

shows how to use the imperative versus the functional version of increment.

From

Cover of Functional Programming in JavaScript

Note

Error in code below: right side should say "print(plus2(0))" instead of "print(run(0))".