Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created February 24, 2018 14:26
Show Gist options
  • Save haingdc/21bccc365f8390c8766dc8630fbf7799 to your computer and use it in GitHub Desktop.
Save haingdc/21bccc365f8390c8766dc8630fbf7799 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Functional JavaScript: Part 1
var unicornEl = document.getElementById('unicorn');
unicornEl.className += ' magic';
spin(unicornEl);
var fairyEl = document.getElementById('fairy');
fairyEl.className += ' magic';
sparkle(fairyEl);
var kittenEl = document.getElementById('kitten');
kittenEl.className += ' magic';
rainbowTrail(kittenEl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment