Skip to content

Instantly share code, notes, and snippets.

@ebenezerdon
Created September 28, 2019 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebenezerdon/613d06a96e6e8aa333fe8156c412f677 to your computer and use it in GitHub Desktop.
Save ebenezerdon/613d06a96e6e8aa333fe8156c412f677 to your computer and use it in GitHub Desktop.
A function to be used as an illustration in my article: JavaScript Functions
const multiplyByTwo = function(value) {
if (isNaN(value)) {
return 'Value must be a number'
}
return (value * 2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment