Last active
January 24, 2020 09:32
-
-
Save ckomop0x/a79e93176ded1f452f9460be94722756 to your computer and use it in GitHub Desktop.
multiply.js refactored to a file
This file contains 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
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