Last active
April 1, 2022 21:41
-
-
Save EECOLOR/0460a05e72105b840d4573344305a5ae to your computer and use it in GitHub Desktop.
snippet_const_function
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
const moreDetail = () => { | |
... | |
} | |
const detail1 = () => { | |
... | |
return moreDetail() | |
} | |
const detail2 = (input) => { | |
... | |
} | |
const overview = () => { | |
const result1 = detail1() | |
return detail2(result1) | |
} | |
// vs | |
function overview() { | |
const result1 = detail1() | |
return detail2(result1) | |
} | |
function detail1() { | |
... | |
return moreDetail() | |
} | |
function detail2() { | |
... | |
} | |
function moreDetail() { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment