Last active
August 22, 2019 18:13
-
-
Save udittyagi/335c96940e9fb59b9f8b817a29e84b46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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