Created
July 6, 2022 04:09
-
-
Save rahulbanerjee26/2c0eb6049966ae4d59efd8f2a843cb6a to your computer and use it in GitHub Desktop.
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
function sayHello(){ | |
let name = 'Rahul' | |
function inner(){ | |
console.log(`Hello ${name}`) | |
} | |
return inner | |
} | |
let abc = sayHello() | |
console.log(abc) | |
// Output: | |
// [Function: inner] | |
// Hello Rahul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment