Created
January 19, 2019 21:17
-
-
Save Maccauhuru/f23b6782eab02886f13afadc7b5c087a to your computer and use it in GitHub Desktop.
Example of IIFE with variables and parmeters
This file contains hidden or 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
const greetingMessageIIFE = (function(name,message){ | |
let headline = `Lets create some IIFE's`; | |
return `${headline} | |
Hello ${name},${message}` | |
})('Neo',"Welcome to the Matrix!"); | |
//Lets create some IIFE's | |
//Hello Neo,Welcome to the Matrix! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment