Created
May 26, 2024 15:22
-
-
Save b-tekinli/bc7a5523463c74fed748327c43c056d2 to your computer and use it in GitHub Desktop.
js interview arrow func
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
// ES5 | |
var add = function(a, b) { | |
return a + b; | |
}; | |
// ES6 | |
const add = (a, b) => a + b; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment