Created
June 6, 2022 05:52
-
-
Save dikshadhote/c2df5e747bfcf3a0d9fa2751ca744be0 to your computer and use it in GitHub Desktop.
IIFE
This file contains 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 number = 4; | |
function test() | |
{ | |
(function() { | |
if (number ==8) { | |
var number = 16; | |
} | |
})(); | |
console.log(number ); | |
} | |
test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment