Created
August 25, 2019 12:36
-
-
Save abhidatta0/8eab0dc7cd98cf87b031fd7f77a11f8c to your computer and use it in GitHub Desktop.
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
| var greeting=function(name){ | |
| return 'Hello '+name; | |
| }('John'); | |
| console.log(greeting); | |
| var firstname="John"; | |
| (function(name){ | |
| var greeting="Hello"; | |
| console.log(greeting+" "+name); | |
| }(firstname)); | |
| //IIFE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment