Skip to content

Instantly share code, notes, and snippets.

@jx13xx
Created March 19, 2022 12:50
Show Gist options
  • Save jx13xx/81eb23a716e321ddd1c4025cdfd4a225 to your computer and use it in GitHub Desktop.
Save jx13xx/81eb23a716e321ddd1c4025cdfd4a225 to your computer and use it in GitHub Desktop.
IIFE - Immediately Invoked Fucntion Expressions Javascript
var firstname = "MyNamew";
(function(name){
var greeting = "Inside IIFE: Hellow"
console.log(greeting + '' + name);
}(firstname))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment