Why JavaScript?

Ben Oakes edited this page Nov 8, 2017 · 5 revisions
  • JavaScript is the most popular language in the world.
  • It is possible to do a lot of functional programming in JavaScript.
  • Functional JavaScript is a growing trend but there aren't many good resources for learning it.
  • JavaScript is often people's first language so it needs simple explanations more than other languages.

What's with the =>?

The examples often use ES2015 (A recent version of JavaScript) to make the examples more concise. => is a terse way to define an anonymous function.

const add1 = a => a + 1

// is equivalent to

function add1(a) {
  return a + 1

Where are the semi-colons?

They're unnecessary! We're actually running Standard Linter which prevents any possible pitfalls with semi-colons so it's perfectly safe.

Are Semicolons Necessary in JavaScript?

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.