Instantly share code, notes, and snippets.

View fp-in-js.txt
Functional Programming Jargon in simple terms:
Professor Frisby's Mostly Adequate Guide to Functional Programming (book):
A series on FP in JS from Eric Elliott:
Some introduction to Monads:
View 1-ajax.js
const vehicleToHtml = obj => {
return `<div id="${}">${}</div>`;
url: '/get/all/vehicles',
success: vehicles => {
const html =;
// const html = => new Vehicle(v)).map(v => v.toHtml());
document.querySelector('#list').innerHTML = html;
View example.html
<!doctype html>
<meta name="charset" content="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="author" content="Adam Beres-Deak"/>
<meta name="viewport" content="width=device-width"/>
body {