Last active
March 3, 2018 06:55
-
-
Save gpalsingh/c5003989e799f0f8d034d8b8d2f7f1d7 to your computer and use it in GitHub Desktop.
Code examples used to explain arrow functions
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
var add = function(x, y) { | |
var total = x + y; | |
return total; | |
} | |
console.log(add(2, 3)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment