Skip to content

Instantly share code, notes, and snippets.

@sanketmeghani
Created October 1, 2017 08:13
Show Gist options
  • Save sanketmeghani/0b189772e88e2579c17c6f59e4d5c32b to your computer and use it in GitHub Desktop.
Save sanketmeghani/0b189772e88e2579c17c6f59e4d5c32b to your computer and use it in GitHub Desktop.
Error due to automatic semicolon insertion
const sum = (a, b) => {
return
{
result: a + b
}
}
const result = sum(1, 3)
console.log(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment