Skip to content

Instantly share code, notes, and snippets.

@wcalderipe
Last active August 29, 2017 01:57
Show Gist options
  • Save wcalderipe/640a8b1ba97eecaf1a080329c760d33e to your computer and use it in GitHub Desktop.
Save wcalderipe/640a8b1ba97eecaf1a080329c760d33e to your computer and use it in GitHub Desktop.
let value = 1
const addOne = () => value + 1
addOne() // 2
addOne() // 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment