Skip to content

Instantly share code, notes, and snippets.

@emilycodeee
Last active January 9, 2021 04:48
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