Skip to content

Instantly share code, notes, and snippets.

@mkczarkowski
Created May 23, 2018 13:49
Show Gist options
  • Select an option

  • Save mkczarkowski/b05b720671cefe2ff298a8e490354232 to your computer and use it in GitHub Desktop.

Select an option

Save mkczarkowski/b05b720671cefe2ff298a8e490354232 to your computer and use it in GitHub Desktop.
const sum = (a, b) // Syntax error.
=> { return a + b; };
const sum = (a, b) // Syntax error.
=> a + b;
const sum = (a, b) => // OK
{
return a + b;
};
const sum = (a, b) => { // OK
return a + b;
};
const sum = (a, b) => // OK
a + b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment