Skip to content

Instantly share code, notes, and snippets.

@dejwid
Last active February 8, 2017 21:22
Show Gist options
  • Save dejwid/2d6188190a5df257658801f093519595 to your computer and use it in GitHub Desktop.
Save dejwid/2d6188190a5df257658801f093519595 to your computer and use it in GitHub Desktop.
Why i love es6
var sum = function(a,b) {
return a+b;
};
var sum (a,b) => a+b;
var square = function(a) {
return a*a;
};
var square = a => a*a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment