Skip to content

Instantly share code, notes, and snippets.

@jasonfigueroa
Created October 26, 2017 19:27
Show Gist options
  • Save jasonfigueroa/091ea9d9f43936ae01f9e1ec29d0a45c to your computer and use it in GitHub Desktop.
Save jasonfigueroa/091ea9d9f43936ae01f9e1ec29d0a45c to your computer and use it in GitHub Desktop.
// An example of a valid parameter is Date.now()
const timer = (startTimeInMilliseconds) => {
const startTime = parseFloat(startTimeInMilliseconds);
return (endTimeInMilliseconds) => {
const endTime = parseFloat(endTimeInMilliseconds);
return endTime - startTime;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment