Created
November 4, 2020 12:51
-
-
Save ranamahmud/3be8adb106b0d54ead11c2a29245d196 to your computer and use it in GitHub Desktop.
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
// normal funciton | |
const double = function(num){ | |
return num*2; | |
} | |
// converted to arrow function | |
num => num * 2 | |
num => num * 2 | |
[1,2,3].map(num => num * 2); | |
// [2, 4, 6] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment