Skip to content

Instantly share code, notes, and snippets.

@ckomop0x
Last active January 24, 2020 09:32
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 ckomop0x/a79e93176ded1f452f9460be94722756 to your computer and use it in GitHub Desktop.
Save ckomop0x/a79e93176ded1f452f9460be94722756 to your computer and use it in GitHub Desktop.
multiply.js refactored to a file
export default function multiply (a, b) {
return a * b;
}
// or
const multiply (a, b) => a * b;
export default multiply;
// Whatever you prefer – this article is not about syntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment