Skip to content

Instantly share code, notes, and snippets.

@pporche87
Last active April 21, 2017 17:36
Show Gist options
  • Save pporche87/23b809c9b3855c52e08accf263b97dc0 to your computer and use it in GitHub Desktop.
Save pporche87/23b809c9b3855c52e08accf263b97dc0 to your computer and use it in GitHub Desktop.
/**
*subtracts two numbers
*/
const subtract = (x,y) => x - y
module.exports = subtract
// Before refactoring:
// let answer = x - y
// return answer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment