Skip to content

Instantly share code, notes, and snippets.

@praveenvedanth
Last active September 3, 2016 20:36
Show Gist options
  • Save praveenvedanth/9326ced452f455b8a7a256d634b36cd9 to your computer and use it in GitHub Desktop.
Save praveenvedanth/9326ced452f455b8a7a256d634b36cd9 to your computer and use it in GitHub Desktop.
/* Unnamed function expressions */
(function(){console.log('Unnamed function expressions');})
IIFE
(function(){console.log('Unnamed function expressions');})()
(function(){console.log('Unnamed function expressions');}())
/* Named function expressions */
(function foo(){console.log('Named function expressions');})
IIFE
(function foo(){console.log('Named function expressions');})()
(function foo(){console.log('Named function expressions');}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment