This commit is contained in:
Karan 2021-11-25 20:00:41 +05:30 committed by GitHub
parent 2bcd270607
commit a8cf9fced2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +0,0 @@
let val = '1000';
(function () {
console.log('hello');
let val = '100'; // local scope variable
})();
let result = (function () {
let val = 'Laurence';
return val;
})();
console.log(result);
console.log(val);
(function (val) {
console.log(`My name is ${val}`);
})('Laurence');