Created
October 26, 2017 19:27
-
-
Save jasonfigueroa/091ea9d9f43936ae01f9e1ec29d0a45c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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