Skip to content

Instantly share code, notes, and snippets.

@udittyagi
Last active August 22, 2019 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udittyagi/335c96940e9fb59b9f8b817a29e84b46 to your computer and use it in GitHub Desktop.
Save udittyagi/335c96940e9fb59b9f8b817a29e84b46 to your computer and use it in GitHub Desktop.
(function () {
const sum = (a, b) => {
return a + b;
};
const result = sum(2, 3)
console.log(result)
})()
sum(5, 8) // ReferenceError: sum not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment