We explain what functional programming is, with five examples of how you can make your JavaScript more functional in style.