Skip to content

Instantly share code, notes, and snippets.

@addywaddy
Created October 28, 2010 07:41
Show Gist options
  • Save addywaddy/650855 to your computer and use it in GitHub Desktop.
Save addywaddy/650855 to your computer and use it in GitHub Desktop.
Sometimes semi-colons are indeed necessary in Javascript
function echo (str) {
return str
}
echo("Hello")
(function() {
echo("Goodbye")
})
// => "TypeError: string is not a function"
function echo (str) {
return str
}
echo("Hello");
(function() {
echo("Goodbye")
})
// => "You may proceed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment