Created
August 25, 2022 11:39
-
-
Save Karytonn/e05c079acfc8754fce13d8af8669e88a 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
let msn = 'First'; | |
// Without auto invocation | |
const write = (): string => { | |
console.log('Second'); | |
return '...'; | |
}; | |
// With auto invocation | |
const message = write(); | |
// Without auto invocation | |
const isFunction = function () { | |
console.log('Third'); | |
}; | |
console.log(msn); | |
isFunction(); | |
// Second | |
// First | |
// Third |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment