Last active
January 9, 2021 04:48
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 multiply(a, b) { 從multiply函示開始執行 | |
return a * b | |
} | |
function square(n) { 執行,碰到multiply 再回頭找multiply函式 | |
return multiply(n, n) | |
} | |
function printSquare(n) { 碰到square(n) 再回頭找square函式 | |
let squared = square(n) | |
console.log(squared) | |
} | |
printSquare(4) 開始執行printSquare() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment