Skip to content

Instantly share code, notes, and snippets.

View praveenvedanth's full-sized avatar

Praveen Vedanth praveenvedanth

View GitHub Profile
/* 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');})