Udemy課程:[The Web Developer Bootcamp 2021(Colt Steele)](https://www.udemy.com/course/the-web-developer-bootcamp/) # 第 20 節:NEW: Introducing Functions ###### tags: `JavaScript` `Udemy` `The Web Developer Bootcamp 2021` 2021.02.02(Tue.)~02.14(Sun.) ## ● 上課筆記 ## 1.Define function and Run ! 語法如下: ```javascript= function funcName(){ //do something } funcName() //run once funcName() //run again! ``` ## 2.arguments [arguments參考網址](https://dean34520.medium.com/%E7%90%86%E8%A7%A3-javascript%E4%B8%AD%E7%9A%84arguments-%E8%88%87-parameters-5028336976f6) ## 3.return [return參考網址](https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Statements/return) 如果在 function body 內宣告 return 的話,函式執行就會終止。如果指定數值的話,函式呼叫器就會回傳給定的數值。
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up