Skip to content

Instantly share code, notes, and snippets.

@gpalsingh
Last active March 3, 2018 06:55
Show Gist options
  • Save gpalsingh/c5003989e799f0f8d034d8b8d2f7f1d7 to your computer and use it in GitHub Desktop.
Save gpalsingh/c5003989e799f0f8d034d8b8d2f7f1d7 to your computer and use it in GitHub Desktop.
Code examples used to explain arrow functions
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